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
  • Description
  • Request Header
  • Request Parameters
  • Response
  • Data Content
  • Address_list Content
  • Token_list Content
  • Protocol_list Content
  • Request and Response Sample
  1. REFERENCE
  2. API Reference
  3. Subscription

Query history subscription detail V2

Description

  • Description: Query history subscription detail

  • Path: https://api.blockin.ai/v2/subscribe/history/wallet/detail

  • Encoding: UTF-8

  • Method: HTTPS POST

Request Header

Paremeter
Type
Required
Description

Content-Type

String

Y

application/json

AccessKey

String

Y

AccessKey

Request Parameters

Parameter
Type
Required
Description

subscriber

String

Y

Subscriber

type

String

N

Type: USER ,TOKEN

address

String

N

Address

Response

Parameter
Type
Required
Description

success

Boolean

Y

Success Boolean

data

Object

N

Response data

error_code

String

N

Error code

error_msg

String

N

Error message

Data Content

Parameter
Type
Required
Description

subscriber

String

Y

Subscriber

address_list

List

Y

List of address configured

Address_list Content

Parameter
Type
Required
Description

type

String

Y

Type: USER , TOKEN

address

String

Y

Address

alias

String

N

Alias of address

chain_names

String

N

If it's not filled in means all chains. Multiple chains are separated by commas. eg: eth, bsc, arb.

value

String

N

Value type tier

1:v<=1000u,

2:1000u<v<=10000u,

3: 10000u<v<100000u,

4:100000u<v<=1000000u

5:v>1000000u

token_list

List

N

Token is configurable when type is "USER"

protocol_list

List

N

List of protocol

start_dnd

String

N

Do not disturb time start (eg:20:00:00)

end_dnd

String

N

Do not disturb time end (eg: 08:00:00)

Token_list Content

Parameter
Type
Required
Description

chain_name

String

Y

Chain name

token

String

Y

Token address

Protocol_list Content

Parameter
Type
Required
Description

chain_name

String

Y

Chain name

protocol

String

Y

Request and Response Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X POST "https://api.blockin.ai/v2/subscribe/history/wallet/detail" -d'{Request json}'

//query several addresses
Request json
{
   "subscriber": "0xdd3db40e569a28244790a9f58b59efc4efbbe937",
   "address_list": [
   {
       "type":"USER",
       "address":"0x0c14c154558ad0eb2f305bfa365426f6774894f4"
   },
   {
       "type":"TOKEN",
       "address":"0xe9e7cea3dedca5984780bafc599bd69add087d56"
   }
}

Return json

{
    "success": true,
    "error_code": null,
    "error_msg": null,
    "data": {
       "subscriber":"0xdd3db40e569a28244790a9f58b59efc4efbbe937",
       "address_list": [
           {
           "type":"USER",
           "address":"0x0c14c154558ad0eb2f305bfa365426f6774894f4",
           "alias":"nnn",
           "start_dnd":"20:00:00",
           "end_dnd":"08:00:00",
           "chain_names":"ETH,BSC",
           "value":"1",
           "token_list":[
                {
                "chain_name":"ETH",
            "token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
                }, {
                "chain_name":"ETH",
              "token":"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
                }
            ],
            "protocol_list":[
                {
                "chain_name":"ETH",
                "protocol":"uniswap2"
                }, {
                "chain_name":"ETH",
                "protocol":"sushiswap"
                }
            ]
           },
           {
           "type":"TOKEN",
           "address":"0xe9e7cea3dedca5984780bafc599bd69add087d56",
           "alias":"ttt",
           "start_dnd":"08:00:00",
           "end_dnd":"09:00:00",
           "chain_names":"ETH,BSC",
           "value":"2",
           "protocol_list":[
                {
                "chain_name":"ETH",
                "protocol":"uniswap2"
                }, {
                "chain_name":"ETH",
                "protocol":"sushiswap"
                }
            ]
           }
       ]
    }
}

PreviousQuery history subscription wallet V2NextHistory subscription Message query V2

Last updated 1 year ago

😈
🐙
Protocol name