Struct ethcore_rpc::v1::ParityAccountsClient
[−]
[src]
pub struct ParityAccountsClient<C> where C: MiningBlockChainClient { /* fields omitted */ }
Account management (personal) rpc implementation.
Methods
impl<C> ParityAccountsClient<C> where C: MiningBlockChainClient
[src]
fn new(store: &Arc<AccountProvider>, client: &Arc<C>) -> Self
Creates new PersonalClient
Trait Implementations
impl<C: 'static> ParityAccounts for ParityAccountsClient<C> where C: MiningBlockChainClient
[src]
fn all_accounts_info(&self)
-> Result<BTreeMap<String, BTreeMap<String, String>>, Error>
-> Result<BTreeMap<String, BTreeMap<String, String>>, Error>
Returns accounts information.
fn new_account_from_phrase(&self,
phrase: String,
pass: String)
-> Result<RpcH160, Error>
phrase: String,
pass: String)
-> Result<RpcH160, Error>
Creates new account from the given phrase using standard brainwallet mechanism. Second parameter is password for the new account. Read more
fn new_account_from_wallet(&self,
json: String,
pass: String)
-> Result<RpcH160, Error>
json: String,
pass: String)
-> Result<RpcH160, Error>
Creates new account from the given JSON wallet. Second parameter is password for the wallet and the new account. Read more
fn new_account_from_secret(&self,
secret: RpcH256,
pass: String)
-> Result<RpcH160, Error>
secret: RpcH256,
pass: String)
-> Result<RpcH160, Error>
Creates new account from the given raw secret. Second parameter is password for the new account. Read more
fn test_password(&self,
account: RpcH160,
password: String)
-> Result<bool, Error>
account: RpcH160,
password: String)
-> Result<bool, Error>
Returns true if given password
would unlock given account
. Arguments: account
, password
. Read more
fn change_password(&self,
account: RpcH160,
password: String,
new_password: String)
-> Result<bool, Error>
account: RpcH160,
password: String,
new_password: String)
-> Result<bool, Error>
Changes an account's password. Arguments: account
, password
, new_password
. Read more
fn kill_account(&self,
account: RpcH160,
password: String)
-> Result<bool, Error>
account: RpcH160,
password: String)
-> Result<bool, Error>
Permanently deletes an account. Arguments: account
, password
. Read more
fn remove_address(&self, addr: RpcH160) -> Result<bool, Error>
Permanently deletes an address from the addressbook Arguments: address
Read more
fn set_account_name(&self, addr: RpcH160, name: String) -> Result<bool, Error>
Set an account's name.
fn set_account_meta(&self, addr: RpcH160, meta: String) -> Result<bool, Error>
Set an account's metadata string.
fn set_account_visibility(&self,
_address: RpcH160,
_dapp: RpcH256,
_visible: bool)
-> Result<bool, Error>
_address: RpcH160,
_dapp: RpcH256,
_visible: bool)
-> Result<bool, Error>
Sets account visibility
fn set_dapps_addresses(&self,
dapp: DappId,
addresses: Vec<RpcH160>)
-> Result<bool, Error>
dapp: DappId,
addresses: Vec<RpcH160>)
-> Result<bool, Error>
Sets accounts exposed for particular dapp.
fn dapps_addresses(&self, dapp: DappId) -> Result<Vec<RpcH160>, Error>
Gets accounts exposed for particular dapp.
fn set_new_dapps_whitelist(&self,
whitelist: Option<Vec<RpcH160>>)
-> Result<bool, Error>
whitelist: Option<Vec<RpcH160>>)
-> Result<bool, Error>
Sets accounts exposed for new dapps. None
means that all accounts will be exposed. Read more
fn new_dapps_whitelist(&self) -> Result<Option<Vec<RpcH160>>, Error>
Gets accounts exposed for new dapps. None
means that all accounts will be exposed. Read more
fn recent_dapps(&self) -> Result<BTreeMap<DappId, u64>, Error>
Returns identified dapps that recently used RPC Includes last usage timestamp. Read more
fn import_geth_accounts(&self,
addresses: Vec<RpcH160>)
-> Result<Vec<RpcH160>, Error>
addresses: Vec<RpcH160>)
-> Result<Vec<RpcH160>, Error>
Imports a number of Geth accounts, with the list provided as the argument.
fn geth_accounts(&self) -> Result<Vec<RpcH160>, Error>
Returns the accounts available for importing from Geth.
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more