Bitcoin

Bitcoin endpoints

Supported methods for Bitcoin. Please note that to use these methods you must specify both the API token, btc in this case, and the network on which you want to make the call. For example, if you want to know the balance of a Bitcoin Cash address in the main network, the corresponding endpoint is as follows: http://server/btc/mainnet/getAddressBalance

Return the transaction history of any address

post

Return the transaction history of any address

Body
anyOptional
Responses
200

Successful response

application/json
Responseany
post
POST /getAddressHistory HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Successful response

No content

Return the transaction history of the given addresses

post

Return the transaction history of the given addresses

Body
anyOptional
Responses
200

Successful response

application/json
Responseany
post
POST /getAddressesHistory HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Successful response

No content

Returns latest block hash and index

post

Returns latest block hash and index

Body
anyOptional
Responses
200Success
application/json
Responseany
post
POST /getHeight HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200Success

No content

Returns the information of any block giving its hash

post

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

Body
anyOptional
Responses
200Success
application/json
Responseany
post
POST /getBlockByHash HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200Success

No content

Returns the information of any block giving its height

post

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

Body
anyOptional
Responses
200Success
application/json
Responseany
post
POST /getBlockByNumber HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200Success

No content

Returns if blockchain is syncing

post

Returns True if blocks are syncing and returns False if theres no synchronization or is fully sychronize

Body
anyOptional
Responses
200Success
application/json
Responseany
post
POST /syncing HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200Success

No content

Returns the information of any transaction

post

Returns the information of any transaction, giving its transaction hash

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /getTransaction HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Returns the information of an array of transactions

post

Returns the information of an array of transaction, giving its transactions hash

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /getTransactions HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Watch an address. Everytime the address changes, a http POST is sent to the URL.

post

Watch an address. Everytime the address changes, a http POST is sent to the URL.

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /notify HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Returns the number of pending or confirmed transactions an address has made

post

Returns the number of pending or confirmed transactions an address has made

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /getAddressTransactionCount HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Returns the number of pending or confirmed transactions several addresses have made

post

Returns the number of pending or confirmed transactions several addresses have made

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /getAddressesTransactionCount HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Estimate fee by confirmations

post

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.

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /getFeePerByte HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Returns the UTXO list of any address

post

Returns the UTXO list of any address

Body
anyOptional
Responses
200

Successful response

application/json
Responseany
post
POST /getAddressUnspent HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Successful response

No content

Returns the UTXO list of the given addresses

post

Returns the UTXO list of the given addresses

Body
anyOptional
Responses
200

Successful response

application/json
Responseany
post
POST /getAddressesUnspent HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Successful response

No content

Returns transaction

post

Returns raw schema of any transaction. If verbosity is set to true, transaction object is returned, otherwise raw transaction will be returned

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /getTransactionHex HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Broadcasts a transaction to the network

post

Broadcasts a transaction to the network

Body
anyOptional
Responses
200

Response succesfull

application/json
Responseany
post
POST /broadcastTransaction HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
200

Response succesfull

No content

Last updated