# Struct ethcore_rpc::v1::ParityClient [−] [src]

    pub struct ParityClient<C, M, S: ?Sized, U> where C: MiningBlockChainClient, M: MinerService, S: SyncProvider, U: UpdateService { /* fields omitted */ }

Parity implementation.

## Methods

### `impl<C, M, S: ?Sized, U> ParityClient<C, M, S, U> where C: MiningBlockChainClient, M: MinerService, S: SyncProvider, U: UpdateService`
[src]

#### `fn new(client: &Arc<C>,
miner: &Arc<M>,
sync: &Arc<S>,
updater: &Arc<U>,
net: &Arc<ManageNetwork>,
store: &Arc<AccountProvider>,
logger: Arc<RotatingLogger>,
settings: Arc<NetworkSettings>,
signer: Option<Arc<SignerService>>,
dapps_interface: Option<String>,
dapps_port: Option<u16>)
-> Self`

Creates new `ParityClient`.

## Trait Implementations

### `impl<C, M, S: ?Sized, U> Parity for ParityClient<C, M, S, U> where M: MinerService + 'static, C: MiningBlockChainClient + 'static, S: SyncProvider + 'static, U: UpdateService + 'static`
[src]

#### `type Metadata = Metadata`

Requests metadata

#### `fn accounts_info(&self,
dapp: Trailing<DappId>)
-> Result<BTreeMap<String, BTreeMap<String, String>>, Error>`

Returns accounts information.

#### `fn default_account(&self, meta: Self::Metadata) -> BoxFuture<H160, Error>`

Returns default account for dapp.

#### `fn transactions_limit(&self) -> Result<usize, Error>`

Returns current transactions limit.

#### `fn min_gas_price(&self) -> Result<U256, Error>`

Returns minimal gas price for transaction to be included in queue.

#### `fn extra_data(&self) -> Result<Bytes, Error>`

Returns mining extra data.

#### `fn gas_floor_target(&self) -> Result<U256, Error>`

Returns mining gas floor target.

#### `fn gas_ceil_target(&self) -> Result<U256, Error>`

Returns mining gas floor cap.

#### `fn dev_logs(&self) -> Result<Vec<String>, Error>`

Returns latest logs

#### `fn dev_logs_levels(&self) -> Result<String, Error>`

Returns logs levels

#### `fn net_chain(&self) -> Result<String, Error>`

Returns chain name

#### `fn net_peers(&self) -> Result<Peers, Error>`

Returns peers details

#### `fn net_port(&self) -> Result<u16, Error>`

Returns network port

#### `fn node_name(&self) -> Result<String, Error>`

Returns node name

#### `fn registry_address(&self) -> Result<Option<H160>, Error>`

Returns the value of the registrar for this network.

#### `fn rpc_settings(&self) -> Result<RpcSettings, Error>`

Returns rpc settings

#### `fn default_extra_data(&self) -> Result<Bytes, Error>`

Returns default extra data

#### `fn gas_price_histogram(&self) -> Result<Histogram, Error>`

Returns distribution of gas price in latest blocks.

#### `fn unsigned_transactions_count(&self) -> Result<usize, Error>`

Returns number of unsigned transactions waiting in the signer queue (if signer enabled) Returns error when signer is disabled Read more

#### `fn generate_secret_phrase(&self) -> Result<String, Error>`

Returns a cryptographically random phrase sufficient for securely seeding a secret key.

#### `fn phrase_to_address(&self, phrase: String) -> Result<H160, Error>`

Returns whatever address would be derived from the given phrase if it were to seed a brainwallet.

#### `fn list_accounts(&self,
count: u64,
after: Option<H160>,
block_number: Trailing<BlockNumber>)
-> Result<Option<Vec<H160>>, Error>`

Returns all addresses if Fat DB is enabled (`--fat-db`), or null if not.

#### `fn list_storage_keys(&self,
address: H160,
count: u64,
after: Option<H256>,
block_number: Trailing<BlockNumber>)
-> Result<Option<Vec<H256>>, Error>`

Returns all storage keys of the given address (first parameter) if Fat DB is enabled (`--fat-db`), or null if not. Read more

#### `fn encrypt_message(&self, key: H512, phrase: Bytes) -> Result<Bytes, Error>`

Encrypt some data with a public key under ECIES. First parameter is the 512-byte destination public key, second is the message. Read more

#### `fn pending_transactions(&self) -> Result<Vec<Transaction>, Error>`

Returns all pending transactions from transaction queue.

#### `fn future_transactions(&self) -> Result<Vec<Transaction>, Error>`

Returns all future transactions from transaction queue.

#### `fn pending_transactions_stats(&self)
-> Result<BTreeMap<H256, TransactionStats>, Error>`

Returns propagation statistics on transactions pending in the queue.

#### `fn local_transactions(&self)
-> Result<BTreeMap<H256, LocalTransactionStatus>, Error>`

Returns a list of current and past local transactions with status details.

#### `fn signer_port(&self) -> Result<u16, Error>`

Returns current Trusted Signer port or an error if signer is disabled.

#### `fn dapps_port(&self) -> Result<u16, Error>`

Returns current Dapps Server port or an error if dapps server is disabled.

#### `fn dapps_interface(&self) -> Result<String, Error>`

Returns current Dapps Server interface address or an error if dapps server is disabled.

#### `fn next_nonce(&self, address: H160) -> Result<U256, Error>`

Returns next nonce for particular sender. Should include all transactions in the queue.

#### `fn mode(&self) -> Result<String, Error>`

Get the mode. Results one of: "active", "passive", "dark", "offline".

#### `fn enode(&self) -> Result<String, Error>`

Get the enode of this node.

#### `fn consensus_capability(&self) -> Result<ConsensusCapability, Error>`

Returns information on current consensus capability.

#### `fn version_info(&self) -> Result<VersionInfo, Error>`

Get our version information in a nice object.

#### `fn releases_info(&self) -> Result<Option<OperationsInfo>, Error>`

Get information concerning the latest releases if available.

#### `fn chain_status(&self) -> Result<ChainStatus, Error>`

Get the current chain status.

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