Trait parity_rpc::v1::traits::ParityAccounts
source · [−]pub trait ParityAccounts: Sized + Send + Sync + 'static {
Show 24 methods
fn all_accounts_info(&self) -> Result<BTreeMap<H160, ExtAccountInfo>>;
fn new_account_from_phrase(&self, _: String, _: Password) -> Result<H160>;
fn new_account_from_wallet(&self, _: String, _: Password) -> Result<H160>;
fn new_account_from_secret(&self, _: H256, _: Password) -> Result<H160>;
fn test_password(&self, _: H160, _: Password) -> Result<bool>;
fn change_password(&self, _: H160, _: Password, _: Password) -> Result<bool>;
fn kill_account(&self, _: H160, _: Password) -> Result<bool>;
fn remove_address(&self, _: H160) -> Result<bool>;
fn set_account_name(&self, _: H160, _: String) -> Result<bool>;
fn set_account_meta(&self, _: H160, _: String) -> Result<bool>;
fn create_vault(&self, _: String, _: Password) -> Result<bool>;
fn open_vault(&self, _: String, _: Password) -> Result<bool>;
fn close_vault(&self, _: String) -> Result<bool>;
fn list_vaults(&self) -> Result<Vec<String>>;
fn list_opened_vaults(&self) -> Result<Vec<String>>;
fn change_vault_password(&self, _: String, _: Password) -> Result<bool>;
fn change_vault(&self, _: H160, _: String) -> Result<bool>;
fn get_vault_meta(&self, _: String) -> Result<String>;
fn set_vault_meta(&self, _: String, _: String) -> Result<bool>;
fn derive_key_hash(
&self,
_: H160,
_: Password,
_: DeriveHash,
_: bool
) -> Result<H160>;
fn derive_key_index(
&self,
_: H160,
_: Password,
_: Vec<DeriveHierarchicalItem>,
_: bool
) -> Result<H160>;
fn export_account(&self, _: H160, _: Password) -> Result<KeyFile>;
fn sign_message(&self, _: H160, _: Password, _: H256) -> Result<H520>;
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}
Expand description
Personal Parity rpc interface.
Required methods
fn all_accounts_info(&self) -> Result<BTreeMap<H160, ExtAccountInfo>>
fn all_accounts_info(&self) -> Result<BTreeMap<H160, ExtAccountInfo>>
Returns accounts information.
Creates new account from the given phrase using standard brainwallet mechanism. Second parameter is password for the new account.
Creates new account from the given JSON wallet. Second parameter is password for the wallet and the new account.
Creates new account from the given raw secret. Second parameter is password for the new account.
Returns true if given password
would unlock given account
.
Arguments: account
, password
.
Changes an account’s password.
Arguments: account
, password
, new_password
.
Permanently deletes an account.
Arguments: account
, password
.
fn remove_address(&self, _: H160) -> Result<bool>
fn remove_address(&self, _: H160) -> Result<bool>
Permanently deletes an address from the addressbook
Arguments: address
Set an account’s metadata string.
fn close_vault(&self, _: String) -> Result<bool>
fn close_vault(&self, _: String) -> Result<bool>
Close previously opened vault.
fn list_vaults(&self) -> Result<Vec<String>>
fn list_vaults(&self) -> Result<Vec<String>>
List all vaults.
fn list_opened_vaults(&self) -> Result<Vec<String>>
fn list_opened_vaults(&self) -> Result<Vec<String>>
List all currently opened vaults.
fn get_vault_meta(&self, _: String) -> Result<String>
fn get_vault_meta(&self, _: String) -> Result<String>
Get vault metadata string.
Derive new address from given account address using specific hash. Resulting address can be either saved as a new account (with the same password).
Derive new address from given account address using hierarchical derivation (sequence of 32-bit integer indices). Resulting address can be either saved as a new account (with the same password).
Exports an account with given address if provided password matches.
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.