Struct ethcore_light::client::Client [] [src]

pub struct Client { /* fields omitted */ }

Light client implementation.

Methods

impl Client
[src]

Create a new Client.

Import a header to the queue for additional verification.

Import a local transaction.

Fetch a vector of all pending transactions.

Inquire about the status of a given header.

Get the chain info.

Get the header queue info.

Get a block header by Id.

Flush the header queue.

Get the ith CHT root.

Import a set of pre-verified headers from the queue.

Get a report about blocks imported.

Get blockchain mem usage in bytes.

Trait Implementations

impl LightChainClient for Client
[src]

Get chain info.

Queue header to be verified. Required that all headers queued have their parent queued prior. Read more

Query whether a block is known.

Clear the queue.

Flush the queue.

Get queue info.

Get the ith CHT root.

impl Provider for Client
[src]

Provide current blockchain info.

Find the depth of a common ancestor between two blocks. If either block is unknown or an ancestor can't be found then return None. Read more

Earliest block where state queries are available. If None, no state queries are servable. Read more

Get a block header by id.

Get a block body by id.

Get a block's receipts as an RLP-encoded list by block hash.

Get a state proof from a request. Each proof should be a vector of rlp-encoded trie nodes, in ascending order by distance from the root. Read more

Get contract code by request. Either the raw bytecode or empty.

Provide a header proof from a given Canonical Hash Trie as well as the corresponding header. The first element is the block header and the second is a merkle proof of the CHT. Read more

Provide pending transactions.

Provide a list of headers starting at the requested block, possibly in reverse and skipping skip at a time. Read more

Provide as many as possible of the requested blocks (minus the headers) encoded in RLP format. Read more

Provide the receipts as many as possible of the requested blocks. Returns a vector of RLP-encoded lists of receipts. Read more

Provide a set of merkle proofs, as requested. Each request is a block hash and request parameters. Read more

Provide contract code for the specified (block_hash, account_hash) pairs. Each item in the resulting vector is either the raw bytecode or empty. Read more

Provide header proofs from the Canonical Hash Tries as well as the headers they correspond to -- each element in the returned vector is a 2-tuple. The first element is a block header and the second a merkle proof of the header in a requested CHT. Read more