[]Trait rpc::v1::Network

pub trait Network: Sized + Send + Sync + 'static {
    fn add_node(&self, _: String, _: AddNodeOperation) -> Result<(), Error>;
fn node_info(
        &self,
        _: bool,
        _: Trailing<String>
    ) -> Result<Vec<NodeInfo>, Error>;
fn connection_count(&self) -> Result<usize, Error>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }
[]

Parity-bitcoin network interface

Required Methods

[]

Add/remove/connect to the node @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "addnode", "params": ["127.0.0.1:8888", "add"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "addnode", "params": ["127.0.0.1:8888", "remove"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/ @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "addnode", "params": ["127.0.0.1:8888", "onetry"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/

[]

Query node(s) info @curl-example: curl --data-binary '{"jsonrpc": "2.0", "id":"1", "method": "getaddednodeinfo", "params": [true] }' -H 'content-type: application/json' http://127.0.0.1:8332/ @curl-example: curl --data-binary '{"jsonrpc": "2.0", "id":"1", "method": "getaddednodeinfo", "params": [true, "192.168.0.201"] }' -H 'content-type: application/json' http://127.0.0.1:8332/

[]

Query node(s) info @curl-example: curl --data-binary '{"jsonrpc": "2.0", "id":"1", "method": "getconnectioncount", "params": [] }' -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> NetworkRpc for NetworkClient<T> where
    T: NetworkApi, 
[src]
[]