• Installs:
  • Today: 28
  • This Week: 120
  • This Month: 510
  • All Time: 0
Developer:userzakutynsky

Blockchain API Package

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

List of Endpoints
This is the list of endpoints this API includes. To add of the endpoints to your app, please click on “Connect to endpoint” text.
See All
Discussions
See All
Readme

Blockchain

Blockchain Package

Blockchain is the world's leading software platform for digital assets. Offering the largest production blockchain platform in the world, we are using new technology to build a radically better financial system.

How to get credentials:

  1. Please fill out the form to apply for an API key
  2. Requests for API keys are typically reviewed within 2-3 business days.

Custom datatypes:

DatatypeDescriptionExample
DatepickerString which includes date and time2016-05-28 00:00:00
MapString which includes latitude and longitude coma separated50.37, 26.56
ListSimple array["123", "sample"]
SelectString with predefined valuessample
ArrayArray of objects[{"Second name":"123","Age":"12","Photo":"sdf","Draft":"sdfsdf"},{"name":"adi","Second name":"bla","Age":"4","Photo":"asfserwe","Draft":"sdfsdf"}]

Blockchain.getSingleBlock

Return a single block

FieldTypeDescription
hashStringBlock hash

Blockchain.getSingleTransaction

Return a single transaction

FieldTypeDescription
transactionHashStringTransaction hash

Blockchain.getChartData

Return a data for charts

FieldTypeDescription
chartTypeStringChart type. Example: transactions-per-second

Blockchain.getBlockForSpecifiedHeight

Return a block for specified height

FieldTypeDescription
blockHeightNumberHeight of block

Blockchain.getSingleAddress

Return data for single address

FieldTypeDescription
addressStringAddress can be base58 or hash160
limitNumberLimit parameter to show n transactions. (Default: 50, Max: 50)
offsetNumberOffset parameter to skip the first n transactions. (Page 2 for limit 50)

Blockchain.getMultiAddress

Return data for multi address

FieldTypeDescription
addressListAddress can be base58 or xpub
limitNumberLimit parameter to show n transactions. (Default: 50, Max: 100). This parameter does not work stably.
offsetNumberOffset parameter to skip the first n transactions. (Page 2 for limit 50)

Blockchain.getUnspentOutputs

Return unspent outputs

FieldTypeDescription
addressListAddress can be base58 or xpub
limitNumberLimit parameter to show n transactions. (Default: 250, Max: 1000)
confirmationsNumberConfirmations parameter to limit the minimum confirmations. (Page 2 for limit 50)

Blockchain.getBalance

List the balance summary of each address listed.

FieldTypeDescription
addressListAddress can be base58 or xpub

Blockchain.getLatestBlock

Return latest block data

No arguments.

Blockchain.getUnconfirmedTransactions

Return unconfirmed transactions

No arguments.

Blockchain.getDayBlocks

Get blocks for one day

FieldTypeDescription
dateDatePickerRequired date.

Blockchain.getPoolBlocks

Get blocks for specific pool

FieldTypeDescription
poolStringPool name

Blockchain.getCurrentBlockHeight

Current block height in the longest chain

FieldTypeDescription
keycredentialsYour blockchain.info api key.

Blockchain.getCurrentBlockReward

Current block reward in BTC

FieldTypeDescription
keycredentialsYour blockchain.info api key.

Blockchain.getAddressReceivedNumber

Get the total number of bitcoins received by an address (in satoshi).

FieldTypeDescription
keycredentialsYour blockchain.info api key.
addressStringAddress can be base58 or hash160

Blockchain.getAddressTransmitBitcoins

Get the total number of bitcoins send by an address

FieldTypeDescription
keycredentialsYour blockchain.info api key.
addressStringAddress can be base58 or hash160

Blockchain.getAddressBalance

Get the balance of an address (in satoshi).

FieldTypeDescription
keycredentialsYour blockchain.info api key.
addressStringAddress can be base58 or hash160

Blockchain.getAddressTimestamp

Timestamp of the block an address was first confirmed in.

FieldTypeDescription
keycredentialsYour blockchain.info api key.
addressStringAddress can be base58 or hash160

Blockchain.getTransationTotalOutputValue

Get total output value of a transaction (in satoshi)

FieldTypeDescription
keycredentialsYour blockchain.info api key.
txHashStringTx hash string

Blockchain.getTransationTotalInputValue

Get total input value of a transaction (in satoshi)

FieldTypeDescription
keycredentialsYour blockchain.info api key.
txHashStringTx hash string

Blockchain.getTransactionFree

Get fee included in a transaction (in satoshi).

FieldTypeDescription
keycredentialsYour blockchain.info api key.
txHashStringTx hash string

Blockchain.convertAddressToHash

Converts a bitcoin address to a hash 160.

FieldTypeDescription
keycredentialsYour blockchain.info api key.
addressStringAddress can be base58 or hash160

Blockchain.convertHashToAddress

Converts a hash 160 to a bitcoin address.

FieldTypeDescription
keycredentialsYour blockchain.info api key.
txHashStringTx hash string

Blockchain.convertKeyToHash

Converts a public key to a hash 160

FieldTypeDescription
keycredentialsYour blockchain.info api key.
pubKeyStringPublic key string

Blockchain.convertKeyToAddress

Converts a public key to an Address

FieldTypeDescription
keycredentialsYour blockchain.info api key.
pubKeyStringPublic key string

Blockchain.convertAddressToPublicKey

Converts an address to public key (if available)

FieldTypeDescription
keycredentialsYour blockchain.info api key.
addressStringAddress can be base58 or hash160

Blockchain.getExchangeRate

Returns a JSON object with the currency codes as keys. 15m is the 15 minutes delayed market price, last is the most recent market price, symbol is the currency symbol.

FieldTypeDescription
keycredentialsYour blockchain.info api key.

Blockchain.convertToBTC

Convert x value in the provided currency to btc.

FieldTypeDescription
keycredentialsYour blockchain.info api key.
currencySelectA currency code. Must be: USD,JPY,CNY,SGD,HKD,CAD,NZD,AUD,CLP,GBP,DKK,SEK,ISK,CHF,BRL,EUR,RUB,PLN,THB,KRW,TWD
valueStringValue to convert.

Blockchain.getDataBehindCharts

Get the data behind Blockchain's charts.

FieldTypeDescription
keycredentialsYour blockchain.info api key.
chartNameStringChart name. Example: transactions-per-second
timespanStringDuration of the chart, default is 1 year for most charts, 1 week for mempool charts. Example: 5weeks
rollingAverageStringDuration over which the data should be averaged. Example: 8hours
startDatePickerDatetime at which to start the chart.
sampledSelectBoolean set to 'true' or 'false' (default 'true'). If true, limits the number of datapoints returned to ~1.5k for performance reasons.

Blockchain.getDataBehindStats

Get the data behind Blockchain's stats

FieldTypeDescription
keycredentialsYour blockchain.info api key.

Blockchain.getDataBehindPoolsInformation

Get the data behind Blockchain's pools information

FieldTypeDescription
keycredentialsYour blockchain.info api key.
timespanStringDuration over which the data is computed, maximum 10 days, default is 4 days. Example: 5days
x
circle
Blockchain
$ / m
We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.
?

Oops, we are missing some details

Looks like there are a few missing details that you haven't filled in yet.
These details are important and will help us protect you and let you know about anything new.

x

Connect your app to APIs via RapidAPI

Consume and monitor multiple APIs through the RapidAPI SDK.
Click start to set up your app and connect to your first API.

START

Give your app a name

This app will be used in RapidAPI to collect and connect all the APIs you need.

NEXT

Connect your project

Choose your backend language and then install & require the RapidAPI SDK.

  • node
    NodeJS
  • php
    PHP
  • python
    Python
  • objc
    Obj-C
  • android
    Android
  • go
    GO
  • ruby
    Ruby
  • csharp
    C#

Install SDK

Run the following command to install the SDK:

npm install rapidapi-connect --save

Require SDK

In your code, add the following code to require the RapidAPI SDK:

NEXT

Hooray! You are connected

Use the following code to try it out by getting all the APIs that are on RapidAPI.

rapid.call('RapidAPI', 'getAll', {'{}'});
FINISH
esccloses this view
x

Login to RapidAPI

Create endpoints based on popular APIs and share with others.
Follow popular APIs and get updated. Stand out in the community of developers.

Login with Github
Login with Facebook
Login with Google
Or
Remember Me

  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Why sign up to RapidAPI?

    • integrate
      Integrate APIs into your app
      Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
    • keys
      Save all API keys in one place
    • notifications
      Get notifications about API changes
    • stats
      Get stats and monitor API connections
    Sign up with Github
    Sign up with Facebook
    Sign up with Google
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Authentication

    Authenticate
    esccloses this view