JSON over RESTful HTTP. Amounts are always represented in satoshis.
Returns information about the transaction.
Available fields: txid, version, locktime, size, weight, fee, vin, vout and status
(see transaction format for details).
Returns the transaction confirmation status.
Available fields: confirmed (boolean), block_height (optional) and block_hash (optional).
Returns the raw transaction in hex.
Returns a merkle inclusion proof for the transaction.
Currently matches the merkle proof format used by Electrum's
blockchain.transaction.get_merkle.
Will eventually be changed to use bitcoind's merkleblock format instead.
Returns the spending status of a transaction output.
Available fields: spent (boolean), txid (optional), vin (optional) and status (optional, the status of the spending tx).
Returns the spending status of all transaction outputs.
Broadcast a raw transaction to the network.
The transaction should be provided as hex in the request body.
The txid will be returned on success.
Get information about an address/scripthash.
Available fields: address/scripthash, chain_stats and mempool_stats.
{chain,mempool}_stats each contain an object with tx_count, funded_txo_count, funded_txo_sum, spent_txo_count and spent_txo_sum.
Elements-based chains don't have the {funded,spent}_txo_sum fields.
Get transaction history for the specified address/scripthash, sorted with newest first.
Returns up to 50 mempool transactions plus the first 25 confirmed transactions.
You can request more confirmed transactions using :last_seen_txid(see below).
Get confirmed transaction history for the specified address/scripthash, sorted with newest first.
Returns 25 transactions per page. More can be requested by specifying the last txid seen by the previous query.
Get unconfirmed transaction history for the specified address/scripthash.
Returns up to 50 transactions (no paging).
Get the list of unspent transaction outputs associated with the address/scripthash.
Available fields: txid, vout, value and status (with the status of the funding tx).
Elements-based chains have an additional asset field.
Returns information about a block.
Available fields: id, height, version, timestamp, bits, nonce, merkle_root, tx_count, size, weight and previousblockhash.
Elements-based chains have an additional proof field.
See block format for more details.
The response from this endpoint can be cached indefinitely.
Returns the block status.
Available fields: in_best_chain (boolean, false for orphaned blocks), next_best (the hash of the next block, only available for blocks in the best chain).
Returns a list of transactions in the block (up to 25 transactions beginning at start_index).
Transactions returned here do not have the status field, since all the transactions share the same block and confirmation status.
The response from this endpoint can be cached indefinitely.
Returns a list of all txids in the block.
The response from this endpoint can be cached indefinitely.
Returns the hash of the block currently at height.
Returns the 10 newest blocks starting at the tip or at start_height if specified.
Returns the height of the last block.
Returns the hash of the last block.
Get mempool backlog statistics. Returns an object with:
-
count: the number of transactions in the mempool -
vsize: the total size of mempool transactions in virtual bytes -
total_fee: the total fee paid by mempool transactions in satoshis -
fee_histogram: mempool fee-rate distribution histogramAn array of
(feerate, vsize)tuples, where each entry'svsizeis the total vsize of transactions paying more thanfeeratebut less than the previous entry'sfeerate(except for the first entry, which has no upper bound). This matches the format used by the Electrum RPC protocol formempool.get_fee_histogram.
Example output:
{
"count": 8134,
"vsize": 3444604,
"total_fee":29204625,
"fee_histogram": [[53, 102131], [38, 110990], [34, 138976], [24, 112619], [3, 246346], [2, 239701], [1, 775272]]
}
In this example, there are transactions weighting a total of 102,131 vbytes that are paying more than 53 sat/vB, 110,990 vbytes of transactions paying between 38 and 53 sat/vB, 138,976 vbytes paying between 34 and 38, etc.
Get the full list of txids in the mempool as an array.
The order of the txids is arbitrary and does not match bitcoind's.
Get a list of the last 10 transactions to enter the mempool.
Each transaction object contains simplified overview data, with the following fields: txid, fee, vsize and value
Get an object where the key is the confirmation target (in number of blocks) and the value is the estimated feerate (in sat/vB).
The available confirmation targets are 2, 3, 4, 6, 10, 20, 144, 504 and 1008 blocks.
For example: { 2: 36.183, 3: 34.841, 4: 34.841, 6: 34.841, 10: 22.164, 20: 9.692, 144: 1, 501: 1, 1008:1 }
txidversionlocktimesizeweightfeevin[]txidvoutis_coinbasescriptsigscriptsig_asmsequencewitness[]prevout(previous output in the same format as invoutbelow)- (Elements only)
is_peginissuance(available for asset issuance transactions,nullotherwise)is_reissuanceasset_blinding_nonceasset_entropyassetamountorassetamountcommitmenttokenamountortokenamountcommitment
vout[]scriptpubkeyscriptpubkey_asmscriptpubkey_typescriptpubkey_addressvalue- (Elements only)
valuecommitmentassetorassetcommitmentpegout(available for peg-out outputs,nullotherwise)genesis_hashscriptpubkeyscriptpubkey_asmscriptpubkey_address
statusconfirmed(boolean)block_height(available for confirmed transactions,nullotherwise)block_hash(available for confirmed transactions,nullotherwise)block_time(available for confirmed transactions,nullotherwise)
idheightversiontimestampbitsnoncemerkle_roottx_countsizeweightpreviousblockhash- (Elements only)
proofchallengechallenge_asmsolutionsolution_asm