Blockin.ai OpenAPI
  • Welcome
  • 🥳GETTING STARTED
    • 🗝️Creating an Account
    • 👀Product Overview
  • 😈REFERENCE
    • 🐙API Reference
      • Chain
        • Query available chain list
      • Protocol
        • Query available protocol
        • Query available protocol list
        • Query all available protocol list
        • Query available tagInfo list
        • Query available protocol detail
        • Query available protocol detail list
        • Query all available protocol detail list
        • Query liquidity change list by chain name and pool address
        • Query swap list by chain name and pool address
      • User
        • Query used chain by user address
        • Query chain balance by chain name and user address
        • Query protocol portfolio list by chain name and user address
        • Query protocol portfolios on all chains by user address
        • Query protocol portfolio by chain name, protocol name and user address
        • Query protocol portfolios on all chains by protocol name and user address
        • Query protocol top holders by chain name and protocol name
        • Query simple protocol list by chain name and user address
        • Query simple protocol list on all chains by user address
        • Query token list by chain name and user address
        • Query token list on all chains by user address
        • Query token top holders by chain name and token address
        • Query collections by chain name and user address
        • Query collections on all chains by user address
        • Query collections on Bitcoin by user address
        • Query items by chain name, collection address and user address
        • Query inscriptions on Bitcoin by user address
        • Query items transfer list by chain name and user address
        • Query history list by chain name and user address
        • Query all history list by user address
        • Query User history - Advanced edition
        • Query total balance on all supported chains by user address
        • Query token authorized list by chain name and user address
        • Query nft authorized list by chain name and user address
        • Query 24-hour net assets curve by chain name and user address
        • Query 24-hour net assets curve on all supported chains by user address
        • Query 24-hour protocol portfolios curve by chain name and user address
        • Query 24-hour protocol portfolios curve on all supported chains by user address
        • Query 24-hour wallet curve by chain name and user address
        • Query 24-hour wallet curve on all supported chains by user address
      • Token
        • Query token info
        • Query token info list
        • Query token market info list
        • Subscribe to token kline data
        • Unsubscribe token kline
        • Query pool list by chain name and token address
        • Query liquidity change list by chain name and token address
        • Query swap list by chain name and token address
        • Query real-time exchange rate
        • Query real-time token price
        • Query LP_token info
        • Query symbol's price from foreign exchange
      • NFT
        • Query collection metadata by chain name and collection address
        • Query collection trade list by chain name and collection address
        • Query item info list by chain name and collection address
        • Query item metadata by chain name, collection address and item id
        • Refresh collection metadata
        • Query inscriptions metadata on Bitcoin by inscriptions id
      • Mirror
        • Query historical token list
        • Query historical protocol portfolios
        • Query historical assets
        • Query historical token list on all supported chains
        • Query historical protocol portfolios on all supported chains
        • Query historical assets on all supported chains
        • Query historical LP_token info
      • Subscription
        • Create history subscription
        • Update history subscription
        • Delete history subscription
        • History subscription query
        • Socket Subscription Connection
        • Subscription notify
        • Alter history subscription
        • History subscription- Query Batch_no List
        • Create history subscription V2
        • Delete history subscription V2
        • Query history subscription wallet V2
        • Query history subscription detail V2
        • History subscription Message query V2
        • Socket Subscription Connection V2
    • 📜Enumeration
    • 🎭Error Code
      • Pre exec error code
    • 🍪Related Features
      • Usage
    • ⌨️Change Log
    • 😎Terms of Service
Powered by GitBook
On this page
  • APIs Overview
  • Chain
  • Protocol
  • User
  • Token
  • NFT
  • Mirror
  • Subscription
  • Price
  • Supported chains and protocols
  • Supported Pool Type
  1. GETTING STARTED

Product Overview

Brief description of all APIs

PreviousCreating an AccountNextAPI Reference

Last updated 1 year ago

APIs Overview

The API services provided by Blockin.ai are divided into 7 categories. A brief description is as follows:

Chain

Mainly query the chain covered by Blockin.ai.

  1. (Query available chain list supported by Blockin.ai)


Protocol

Mainly query the protocols supported by Blockin.ai, the basic information of the protocols, etc.

  1. (Query available protocol supported by Blockin.ai)

  2. (Query available protocol list supported by Blockin.ai)

  3. (Query available protocol list supported on all chains by Blockin.ai)

  4. (Query available tagInfo list supported by Blockin.ai, such as DEX, AMM, Lending, etc.)

  5. (Query available protocol supported by Blockin.ai)

  6. (Query available protocol list of tagged protocols supported by Blockin.ai)

  7. (Query all available protocol list on all chains supported by Blockin.ai)

  8. (Query the adding and removing liquidity list of a pool)

  9. (Query the swap list of a pool)


User

Mainly query the user's investment portfolios including DeFi protocols , NFT , token and transaction records.


Token

Token price.

  1. Query token kline (Query token kline)


NFT

Mainly query collection metadata, statistical data and item data, etc.


Mirror

Mainly used to obtain on-chain asset data of a user at a point in time in the past based on timestamp or block number.

Subscription

It mainly provides two services: fixed time query API subscription and history subscription.

Price

Type
API Name
API Path
Units Cost

Chain

/v2/chain/chain_list

1

Protocol

/v2/protocol/protocol_list

1

Protocol

/v2/protocol/all_protocol_list

2

Protocol

/v2/protocol/tag_list

1

Protocol

/v2/protocol/protocol

1

Protocol

/v2/protocol/support_protocol

1

Protocol

/v2/protocol/support_protocol_list

1

Protocol

/v2/protocol/all_support_protocol_list

2

Protocol

/v2/dexs/pool/liquidity_change_list

30

Protocol

/v2/dexs/pool/swap_list

15

User

/v2/user/chain_list

2

User

/v2/user/chain_balance

10

User

/v2/user/protocol

4

User

/v2/user/all_protocol

12

User

/v2/user/protocol_list

10

User

/v2/user/all_protocol_list

30

User

/v2/user/top_list

30

User

/v2/user/simple_protocol_list

4

User

/v2/user/all_simple_protocol_list

12

User

/v2/user/token_list

6

User

/v2/user/all_token_list

18

User

/v2/quot/token/holder

30

User

/v2/user/nft/wallet_collection_list

6

User

/v2/user/nft/wallet_all_collection_list

18

User

/v2/user/nft/btc/wallet_collection_list

6

User

/v2/user/nft/wallet_item_list

18

User

/v2/user/nft/btc/wallet_item_list

18

User

/v2/user/nft/wallet_transfer_list

15

User

/v2/user/history_list

5

User

/v2/user/all_history_list

15

User

/v2/user/history_list_pro

15

User

/v2/user/total_balance

30

User

/v2/user/token_authorized_list

10

User

/v2/user/nft_authorized_list

10

User

/v2/user/assets_curve_24h

30

User

/v2/user/all_assets_curve_24h

90

User

/v2/user/protocol_curve_24h

20

User

/v2/user/all_protocol_curve_24h

40

User

/v2/user/wallet_curve_24h

15

User

/v2/user/all_wallet_curve_24h

30

Token

/v2/token/token_info

1

Token

/v2/token/token_info_list

10

Token

/v2/token/market_info_list

10

Token

/v2/quot/market/kline

20

Token

/ws/quot/subscribe/market

1 token/month/1000 units

Token

/v2/dexs/token/pool_list

15

Token

/v2/dexs/token/liquidity_change_list

30

Token

/v2/dexs/token/swap_list

15

Token

/v2/quot/market/exchange_rate

5

Token

/v2/quot/token/price

5

Token

/v2/quot/fx/price

5

Token

/v2/token/lp_token/info

10

NFT

/v2/nft/collection/item_list

18

NFT

/v2/nft/collection/metadata

6

NFT

/v2/nft/trade_list

15

NFT

/v2/nft/get_nft_metadata

8

NFT

/v2/nft/collection/refresh_metadata

5

NFT

/v2/nft/btc/get_nft_metadata

8

Mirror

/v2/mirror/user/token_list

30

Mirror

/v2/mirror/user/all_token_list

90

Mirror

/v2/mirror/user/protocol

45

Mirror

/v2/mirror/user/all_protocol

90

Mirror

/v2/mirror/user/chain_assets

75

Mirror

/v2/mirror/user/all_assets

225

Subscription

/ws/subscribe/ws/history

5

Subscription

/ws/subscribe/ws/history

10

Supported chains and protocols

Total: 27 chains, 1855 protocols, update weekly !

Chains
Protocols

Ethereum

505

BSC

366

Polygon

221

Arbitrum

190

Avalanche

133

Fantom

123

Cronos

54

Optimism

52

Gnosis

30

Metis

24

Base

23

Aurora

21

Canto

11

Celo

10

Linea

10

HECO

9

Mantle

8

Aptos

8

Moonbeam

7

Tron

7

Sui

7

Klaytn

7

Moonriver

6

OKC

6

KCC

6

Conflux

6

Polygon zkEVM

5

Supported Pool Type

(Query user used chain)

(Query chain balance of user)

(Query protocol portfolio of user)

(Query protocol portfolios on all chains of user)

(Query the list of top holders of a protocol)

(Query assets usd value for each protocol, net asset, total asset and debt)

(Query assets usd value for each protocol, net asset, total asset and debt)

(Query the list of top holders of a token)

(Query user history list)

(Query all transaction records of the chain supported by Blockin.ai through the user address)

(Query user's history (Add address lable and transaction hash) )

(Query user 24h net assets(wallet + protocols) curve on a single chain)

(Query user 24h net assets(wallet + protocols) curve on multiple chains)

(Query user 24h protocol portfolios curve on a single chain)

(Query user 24h protocol portfolios curve on multiple chains)

(Query user 24h wallet curve on a single chain)

(Query user 24h wallet curve on multiple chains)

(Query token information, such as name, abbreviation, price, etc., by the chain name and token address)

(Query token information, such as name, abbreviation, price, etc., by the chain name and token address list)

(Query currency prices)

(Real-time push of the latest kline data)

(Unsubscribe kline)

(Query the relevant pool list based on the token, and the top 100 are queried by default)

(Query the adding and removing liquidity list of a pool)

(Query the swap list of a pool)

(Query real-time exchange rate)

(Query real-time token price)

(Query LP's token info through token address on the chain and protocol supported by Blockin)

(Query price of symbols from foreign exchange according to symbol_list)

(Query the metadata information of collection)

(Query item list of collection)

(Query item details by collection address and item ID, such as attributes, holders, etc.)

(Query metadata for an NFT on the Bitcoin)

(Refresh the metadata for an NFT)

(Query historical token list by chain name, user address and mirror time or block number)

(Query historical protocol portfolios by chain name, protocol name, user address and mirror time or block number)

(Query historical assets(including token list and protocol portfolios) on one chain by chain name, user address and mirror time or block number)

(Query historical token list on multiple chains by user address and mirror time(Block number is unsupported because of multiple chains). You can also specify chain names)

(Query historical protocol portfolio on multiple chains by user address and mirror time(Block number is unsupported because of multiple chains). You can also specify chain names and protocol name)

(Query historical assets(including token list and protocol portfolios) on multiple chains by user address and mirror time(Block number is unsupported because of multiple chains). You can also specify chain names)

Create Fixed-time subscription, Update Fixed-time subscription, Delete Fixed-time subscription, Fixed-time subscription Query, Fixed time data query, please contact telegram:

(Websocket connection)

(Please send a receipt to us after successfully receiving the push)

View

🥳
👀
Query available chain list
Query available protocol
Query available protocol list
Query all available protocol list
Query available tagInfo list
Query available protocol detail
Query available protocol detail list
Query all available protocol detail list
Query liquidity change list by chain name and pool address
Query swap list by chain name and pool address
Query used chain by user address
Query chain balance by chain name and user address
Query protocol portfolio list by chain name and user address
Query protocol portfolios on all chains by user address
Query protocol portfolio by chain name, protocol name and user address
Query protocol portfolios on all chains by protocol name and user address
Query protocol top holders by chain name and protocol name
Query simple protocol list by chain name and user address
Query simple protocol list on all chains by user address
Query token list by chain name and user address
Query token list on all chains by user address
Query token top holders by chain name and token address
Query collections by chain name and user address
Query collections on all chains by user address
Query collections on Bitcoin by user address
Query items by chain name, collection address and user address
Query inscriptions on Bitcoin by user address
Query items transfer list by chain name and user address
Query history list by chain name and user address
Query all history list by user address
Query User history - Advanced edition
Query total balance on all supported chains by user address
Query token authorized list by chain name and user address
Query nft authorized list by chain name and user address
Query 24-hour net assets curve by chain name and user address
Query 24-hour net assets curve on all supported chains by user address
Query 24-hour protocol portfolios curve by chain name and user address
Query 24-hour protocol portfolios curve on all supported chains by user address
Query 24-hour wallet curve by chain name and user address
Query 24-hour wallet curve on all supported chains by user address
Query token info
Query token info list
Query token market info list
Subscribe to token kline data
Unsubscribe token kline
Query pool list by chain name and token address
Query liquidity change list by chain name and token address
Query swap list by chain name and token address
Query real-time exchange rate
Query real-time token price
Query LP_token info
Query symbol's price from foreign exchange
Query collection metadata by chain name and collection address
Query collection trade list by chain name and collection address
Query item info list by chain name and collection address
Query item metadata by chain name, collection address and item id
Query inscriptions metadata on Bitcoin by inscriptions id
Refresh collection metadata
Query historical token list
Query historical protocol portfolios
Query historical assets
Query historical token list on all supported chains
Query historical protocol portfolios on all supported chains
Query historical assets on all supported chains
@lylynn0308
Create history subscription
Update history subscription
Delete history subscription
History subscription query
Socket Subscription Connection
Subscription notify
Create history subscription V2
Update history subscription V2
Delete history subscription V2
Query history subscription wallet V2
Query history subscription detail V2
History subscription Message query V2
Socket Subscription Connection V2
Query token kline
Query available chain list
Query available protocol list
Query all available protocol list
Query available tagInfo list
Query available protocol
Query available protocol detail
Query available protocol detail list
Query all available protocol detail list
Query liquidity change list by chain name and pool address
Query swap list by chain name and pool address
Query used chain by user address
Query chain balance by chain name and user address
Query protocol portfolio by chain name, protocol name and user address
Query protocol portfolios on all chains by protocol name and user address
Query protocol portfolio list by chain name and user address
Query protocol portfolios on all chains by user address
Query protocol top holders by chain name and protocol name
Query simple protocol list by chain name and user address
Query simple protocol list on all chains by user address
Query token list by chain name and user address
Query token list on all chains by user address
Query token top holders by chain name and token address
Query collections by chain name and user address
Query collections on all chains by user address
Query collections on Bitcoin by user address
Query items by chain name, collection address and user address
Query inscriptions on Bitcoin by user address
Query items transfer list by chain name and user address
Query history list by chain name and user address
Query all history list by user address
Query User history - Advanced edition
Query total balance on all supported chains by user address
Query token authorized list by chain name and user address
Query nft authorized list by chain name and user address
Query 24-hour net assets curve by chain name and user address
Query 24-hour net assets curve on all supported chains by user address
Query 24-hour protocol portfolios curve by chain name and user address
Query 24-hour protocol portfolios curve on all supported chains by user address
Query 24-hour wallet curve by chain name and user address
Query 24-hour wallet curve on all supported chains by user address
Query token info
Query token info list
Query token market info list
Subscribe to token kline data
Query pool list by chain name and token address
Query liquidity change list by chain name and token address
Query swap list by chain name and token address
Query real-time exchange rate
Query real-time token price
Query symbol's price from foreign exchange
Query LP_token info
Query item info list by chain name and collection address
Query collection metadata by chain name and collection address
Query collection trade list by chain name and collection address
Query item metadata by chain name, collection address and item id
Refresh collection metadata
Query inscriptions metadata on Bitcoin by inscriptions id
Query historical token list
Query historical token list on all supported chains
Query historical protocol portfolios
Query historical protocol portfolios on all supported chains
Query historical assets
Query historical assets on all supported chains
Socket Subscription Connection V2
History subscription
Supported Pool Type
Subscription message receipt