[−]Trait rpc::v1::Miner
Parity-bitcoin miner data interface.
Required Methods
fn get_block_template(
&self,
_: BlockTemplateRequest
) -> Result<BlockTemplate, Error>
[−]
&self,
_: BlockTemplateRequest
) -> Result<BlockTemplate, Error>
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
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
[−]
Transform this into an IoDelegate
, automatically wrapping
the parameters.
Implementors
impl<T> Miner for MinerClient<T> where
T: MinerClientCoreApi,
[src]
[−]
impl<T> Miner for MinerClient<T> where
T: MinerClientCoreApi,
fn get_block_template(
&self,
_request: BlockTemplateRequest
) -> Result<BlockTemplate, Error>
[src]
fn get_block_template(
&self,
_request: BlockTemplateRequest
) -> Result<BlockTemplate, Error>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>