Trait ethcore_rpc::v1::traits::personal::Personal
[−]
pub trait Personal: Sized + Send + Sync + 'static { type Metadata: Metadata; fn accounts(&self) -> Result<Vec<H160>, Error>; fn new_account(&self, String) -> Result<H160, Error>; fn unlock_account(&self, H160, String, Option<U128>) -> Result<bool, Error>; fn send_transaction(&self,
Self::Metadata,
TransactionRequest,
String)
-> BoxFuture<H256, Error>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }
Personal rpc interface. Safe (read-only) functions.
Associated Types
type Metadata: Metadata
Requests metadata
Required Methods
fn accounts(&self) -> Result<Vec<H160>, Error>
Lists all stored accounts
fn new_account(&self, String) -> Result<H160, Error>
Creates new account (it becomes new current unlocked account) Param is the password for the account.
fn unlock_account(&self, H160, String, Option<U128>) -> Result<bool, Error>
Unlocks specified account for use (can only be one unlocked account at one moment)
fn send_transaction(&self,
Self::Metadata,
TransactionRequest,
String)
-> BoxFuture<H256, Error>
Self::Metadata,
TransactionRequest,
String)
-> BoxFuture<H256, Error>
Sends transaction and signs it in single call. The account is not unlocked in such case.
Provided Methods
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Transform this into an IoDelegate
, automatically wrapping
the parameters.
Implementors
impl<C, M> Personal for PersonalClient<C, M> where C: MiningBlockChainClient + 'static, M: MinerService + 'static