Crate subcoin_rpc_bitcoind

Source
Expand description

Bitcoin Core compatible JSON-RPC API for Subcoin.

This crate provides a Bitcoin Core compatible RPC layer that enables Subcoin to work with Bitcoin ecosystem tools like electrs (Electrum server).

§Supported RPC Methods

§Blockchain

  • getbestblockhash - Returns the hash of the best block
  • getblockchaininfo - Returns blockchain state info
  • getblockcount - Returns the current block count
  • getblockhash - Returns block hash at given height
  • getblock - Returns block data (raw hex or JSON)
  • getblockheader - Returns block header (raw hex or JSON)

§Raw Transactions

  • getrawtransaction - Returns raw transaction data
  • sendrawtransaction - Broadcasts a raw transaction
  • decoderawtransaction - Decodes a raw transaction hex

§Network

  • getnetworkinfo - Returns network state info

§Mempool

  • getrawmempool - Returns all mempool txids
  • getmempoolinfo - Returns mempool statistics
  • getmempoolentry - Returns mempool entry for a txid

§Mining/Fees

  • estimatesmartfee - Estimates fee rate for confirmation target

Structs§

BitcoindRpc
Bitcoin Core compatible RPC server.
Blockchain
Bitcoin Core compatible blockchain RPC implementation.
EstimateSmartFee
Response for estimatesmartfee RPC.
GetBlock
Response for getblock RPC with verbosity=1 (JSON without tx details).
GetBlockHeader
Response for getblockheader RPC with verbose=true.
GetBlockchainInfo
Response for getblockchaininfo RPC.
GetMempoolEntry
Response for getmempoolentry RPC.
GetMempoolInfo
Response for getmempoolinfo RPC.
GetNetworkInfo
Response for getnetworkinfo RPC.
GetRawTransaction
Response for getrawtransaction RPC with verbose=true.
LocalAddress
Local address information.
MempoolRpc
Bitcoin Core compatible mempool RPC implementation.
MiningRpc
Bitcoin Core compatible mining RPC implementation.
NetworkRpc
Bitcoin Core compatible network RPC implementation.
RawTransaction
Bitcoin Core compatible raw transaction RPC implementation.
ScriptPubKey
Script pubkey.
ScriptSig
Script signature.
Vin
Transaction input.
Vout
Transaction output.

Enums§

Error
Bitcoin Core compatible RPC errors.

Traits§

BlockchainApiServer
Server trait implementation for the BlockchainApi RPC API.
MempoolApiServer
Server trait implementation for the MempoolApi RPC API.
MiningApiServer
Server trait implementation for the MiningApi RPC API.
NetworkApiServer
Server trait implementation for the NetworkApi RPC API.
RawTransactionApiServer
Server trait implementation for the RawTransactionApi RPC API.