通过之前的 api::client 向钱包服务端发送 GET/POST 请求。

HTTPWalletClient

node_url

create_coinbase

向 foreign/build_coinbase 发送请求

    /// Call the wallet API to create a coinbase output for the given
    /// block_fees. Will retry based on default "retry forever with backoff"
    /// behavior.

send_tx_slate

向 foreign/receive_tx 发送请求

/// Send the slate to a listening wallet instance
foreign/receive_tx

post_tx

向 pool/push 发送请求

/// Posts a transaction to a grin node

get_chain_height

向 chain 发送请求

/// Return the chain tip from a given node

get_outputs_from_node

向 chain/outputs 发送请求

/// Retrieve outputs from node

get_outputs_by_pmmr_index

向 txhashset/outputs 发送请求

results matching ""

    No results matching ""