pub struct Personal<T> { /* private fields */ }
Expand description
Personal
namespace
Implementations§
source§impl<T: Transport> Personal<T>
impl<T: Transport> Personal<T>
sourcepub fn list_accounts(&self) -> CallFuture<Vec<Address>, T::Out>
pub fn list_accounts(&self) -> CallFuture<Vec<Address>, T::Out>
Returns a list of available accounts.
sourcepub fn new_account(&self, password: &str) -> CallFuture<Address, T::Out>
pub fn new_account(&self, password: &str) -> CallFuture<Address, T::Out>
Creates a new account and protects it with given password. Returns the address of created account.
sourcepub fn unlock_account(
&self,
address: Address,
password: &str,
duration: Option<u16>
) -> CallFuture<bool, T::Out>
pub fn unlock_account(
&self,
address: Address,
password: &str,
duration: Option<u16>
) -> CallFuture<bool, T::Out>
Unlocks the account with given password for some period of time (or single transaction).
Returns true
if the call was successful.
sourcepub fn send_transaction(
&self,
transaction: TransactionRequest,
password: &str
) -> CallFuture<H256, T::Out>
pub fn send_transaction(
&self,
transaction: TransactionRequest,
password: &str
) -> CallFuture<H256, T::Out>
Sends a transaction from locked account. Returns transaction hash.