RapidAPI logo

Blockchain

FREE
By zakutynsky
Updated 4 months ago
Payments
6.4/10
Popularity Score
229ms
Latency
100%
Success Rate

Blockchain API Documentation

Blockchain is the world's leading software platform for digital assets.

View API Details
POSTconvertAddressToHash
POSTconvertAddressToPublicKey
POSTconvertHashToAddress
POSTconvertKeyToAddress
POSTconvertKeyToHash
POSTconvertToBTC
POSTgetAddressBalance
POSTgetAddressReceivedNumber
POSTgetAddressTimestamp
POSTgetAddressTransmitBitcoins
POSTgetBalance
POSTgetBlockForSpecifiedHeight
POSTgetChartData
POSTgetCurrentBlockHeight
POSTgetCurrentBlockReward
POSTgetDataBehindCharts
POSTgetDataBehindPoolsInformation
POSTgetDataBehindStats
POSTgetDayBlocks
POSTgetExchangeRate
POSTgetLatestBlock
POSTgetMultiAddress
POSTgetPoolBlocks
POSTgetSingleAddress
POSTgetSingleBlock
POSTgetSingleTransaction
POSTgetTransactionFree
POSTgetTransationTotalInputValue
POSTgetTransationTotalOutputValue
POSTgetUnconfirmedTransactions
POSTgetUnspentOutputs
POSTconvertAddressToHash

Converts a bitcoin address to a hash 160.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
addressSTRING
REQUIREDAddress can be base58 or hash160
Optional Parameters
keyCREDENTIALS
OPTIONALYour blockchain.info api key.
Code Snippet
unirest.post("https://BlockchainzakutynskyV1.p.rapidapi.com/convertAddressToHash")
.header("X-RapidAPI-Host", "BlockchainzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://BlockchainzakutynskyV1.p.rapidapi.com/convertAddressToHash
Request Method: POST
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://BlockchainzakutynskyV1.p.rapidapi.com/convertAddressToHash")
.header("X-RapidAPI-Host", "BlockchainzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication