[]Trait rpc::v1::Miner

pub trait Miner: Sized + Send + Sync + 'static {
    fn get_block_template(
        &self,
        _: BlockTemplateRequest
    ) -> Result<BlockTemplate, Error>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }
[]

Parity-bitcoin miner data interface.

Required Methods

[]

Get block template for mining. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "workid", "coinbase/append"]}], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/

Provided Methods

[]

Transform this into an IoDelegate, automatically wrapping the parameters.

Implementors

impl<T> Miner for MinerClient<T> where
    T: MinerClientCoreApi, 
[src]
[]