dustyrhode / For-the-love-of-Riri

Some money and love if at all
1 stars 0 forks source link

Dustin #23

Open dustyrhode opened 3 years ago

dustyrhode commented 3 years ago

API documentation

Introduction

General stats endpointsRetrieve overall information about blockchains and tokens

Dashboard endpointsRetrieve information about various entities in a neat format from our databases

Raw data endpointsRetrieve raw information about various entities directly from our full nodes

Bitcoin, Bitcoin Cash, Litecoin, Bitcoin SV, Dogecoin, Dash, Groestlcoin, Zcash, and Bitcoin Testnet

Ethereum

Ripple

Stellar

Monero

Cardano

Block

Transaction

Address

Mixin

Tezos

EOS

Infinitable endpointsSQL-like queries: filter, sort, and aggregate blockchain data

Misc endpoints

Privacy-o-meter

News aggregator

Support

Show all

Blockchair API

Blockchair API provides developers, researchers, and businesses with access to data contained in 17 blockchains

Explore pricing plans

Raw data endpoints for Cardano

Raw block data

Returns raw block data from our cardano-explorer-webapi instance. See https://cardanodocs.com/technical/explorer/api for field descriptions (/api/blocks/summary/{hash} section), but mostly they are self-describing. Our API also allows to query by block id.

Endpoints:

https://api.blockchair.com/{:ada_chain}/raw/block/{:height}₀

https://api.blockchair.com/{:ada_chain}/raw/block/{:hash}₀

Where:

{:ada_chain} can be only cardano

{:height}ᵢ is the block height (integer value), also known as block id

{:hash}ᵢ is the block hash (regex: /^[0-9a-f]{64}$/i)

Possible options:

?transactions=true displays transaction data

Output:

data contains an associative array:

data.{:id}ᵢ.block — block data

data.{:id}ᵢ.block — block transactions (null if ?transactions=true isn't set, an empty array [] if there are no transactions in the block )

Example requests:

https://api.blockchair.com/cardano/raw/block/1234567

https://api.blockchair.com/monero/raw/block/f093439d0dd48010a22fdb615a659e22738a10991871b5dc2335efa69008a8cd?transactions=true

Example output:

https://api.blockchair.com/cardano/raw/block/321123?transactions=true:

{