Bitcoin
Bitcoin endpoints
Last updated
Bitcoin endpoints
Last updated
Bitcoin JSON-RPC methods share the same endpoint, by protocol definition, the payload method
parameter is the one used to know which method is the one to be called. To call this methods, is mandatory to specify the currency, btc
in this case and the network in which to executed the request. Bitcoin JSON-RPC methods are exposed in the following endpoint http://server/btc/{network}/rpc
where network has to be replace by the network name in which make the request
Return the balance of any address
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressBalance
getAddressBalance
Successful response
Return the balance of an array of addresses
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressesBalance
getAddressesBalance
Successful response
Return the transaction history of any address
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressHistory
getAddressHistory
Successful response
Return the transaction history of the given addresses
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressesHistory
getAddressesHistory
Successful response
Returns latest block hash and index
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getHeight
getHeight
Returns the information of any block giving its hash. If verbosity is 0, it returns a string that is serialized, hex-encoded data for block hash. If verbosity is 1, it returns an object with information about the block. If verbosity is 2, it returns an Object with information about the block and each transaction
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getBlockByHash
getBlockByHash
Bitcoin block
Returns the information of any block giving its height. If verbosity is 0, it returns a string that is serialized, hex-encoded data for block hash. If verbosity is 1, it returns an object with information about the block. If verbosity is 2, it returns an Object with information about the block and each transaction
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getBlockByNumber
getBlockByNumber
Bitcoin block
Returns True if blocks are syncing and returns False if theres no synchronization or is fully sychronize
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be syncing
syncing
Bitcoin blockchain syncing status
Returns the information of any transaction, giving its transaction hash
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getTransaction
getTransaction
Response succesfull
Returns the information of an array of transaction, giving its transactions hash
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getTransactions
getTransactions
Response succesfull
Watch an address. Everytime the address changes, a http POST is sent to the URL.
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be notify
notify
Response succesfull
Returns the number of pending or confirmed transactions an address has made
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressTransactionCount
getAddressTransactionCount
Response succesfull
Returns the information of any transaction, giving it transaction hash
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressesTransactionCount
getAddressesTransactionCount
Response succesfull
Estimates the approximate fee per kilobyte needed for a transaction to begin confirmation within "confirmations" blocks if possible and return the number of blocks for which the estimate is valid.
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getFeePerByte
getFeePerByte
Response succesfull
Returns the UTXO list of any address
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressUnspent
getAddressUnspent
Successful response
Returns the UTXO list of an array of addresses
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getAddressesUnspent
getAddressesUnspent
Bitcoin address
tb1qm0xyymv7s07rn00dcpuk2ln890sr3my3cmpfdp
Successful response
Returns raw schema of any transaction. If verbosity is set to true, transaction object is returned, otherwise raw transaction will be returned
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be getTransactionHex
getTransactionHex
Response succesfull
Broadcasts a transaction to the network
Request ID
160907
JSON-RPC Version
2.0
Method name to be called. For this operation, the field value must be broadcastTransaction
broadcastTransaction
Response succesfull