Struct ethcore_rpc::v1::PersonalClient
[−]
[src]
pub struct PersonalClient<C, M> where C: MiningBlockChainClient, M: MinerService { /* fields omitted */ }
Account management (personal) rpc implementation.
Methods
impl<C, M> PersonalClient<C, M> where C: MiningBlockChainClient, M: MinerService
[src]
fn new(store: &Arc<AccountProvider>,
client: &Arc<C>,
miner: &Arc<M>,
allow_perm_unlock: bool)
-> Self
client: &Arc<C>,
miner: &Arc<M>,
allow_perm_unlock: bool)
-> Self
Creates new PersonalClient
Trait Implementations
impl<C, M> Personal for PersonalClient<C, M> where C: MiningBlockChainClient + 'static, M: MinerService + 'static
[src]
type Metadata = Metadata
Requests metadata
fn accounts(&self) -> Result<Vec<RpcH160>, Error>
Lists all stored accounts
fn new_account(&self, pass: String) -> Result<RpcH160, Error>
Creates new account (it becomes new current unlocked account) Param is the password for the account. Read more
fn unlock_account(&self,
account: RpcH160,
account_pass: String,
duration: Option<RpcU128>)
-> Result<bool, Error>
account: RpcH160,
account_pass: String,
duration: Option<RpcU128>)
-> Result<bool, Error>
Unlocks specified account for use (can only be one unlocked account at one moment)
fn send_transaction(&self,
meta: Metadata,
request: TransactionRequest,
password: String)
-> BoxFuture<RpcH256, Error>
meta: Metadata,
request: TransactionRequest,
password: String)
-> BoxFuture<RpcH256, Error>
Sends transaction and signs it in single call. The account is not unlocked in such case.
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more