Trait parity_rpc::v1::ParityAccountsInfo
source · [−]pub trait ParityAccountsInfo: Sized + Send + Sync + 'static {
fn accounts_info(&self) -> Result<BTreeMap<H160, AccountInfo>>;
fn default_account(&self) -> Result<H160>;
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}
Expand description
Parity-specific read-only accounts rpc interface.
Required methods
fn accounts_info(&self) -> Result<BTreeMap<H160, AccountInfo>>
fn accounts_info(&self) -> Result<BTreeMap<H160, AccountInfo>>
Returns accounts information.
fn default_account(&self) -> Result<H160>
fn default_account(&self) -> Result<H160>
Returns default account for dapp.
Provided methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Create an IoDelegate
, wiring rpc calls to the trait methods.