# 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`

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>`

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>`

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

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)