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
  • Public Response
  • Response Content
  • UnderlyingInfo Content
  • Request Sample
  • Successful Response Sample
  • Failed Response Sample
  • Supported Protocols
  1. REFERENCE
  2. API Reference
  3. Token

Query LP_token info

Description

  • Method: HTTPS GET

  • Encoding: UTF-8

  • Path: https://api.blockin.ai/v2/token/lp_token/info

  • Description: Query LP's token info through token address on the chain and protocol supported by Blockin

Request Header

Parameter
Required
Type
Description

Content-Type

Y

String

application/json

AccessKey

Y

String

1bdb01c947c54919b64d1fc6794atest

Request Parameters

Parameter
Required
Type
Description

chain_name

Y

String

address

Y

String

Token address

Response

Public Response

Parameter
Required
Type
Description

success

Y

Boolean

Success Boolean

data

N

Object

Response object

error_code

N

String

Error code

error_msg

N

String

Error message

Response Content

Parameter
Required
Type
Description

address

Y

String

Token's address

chain_name

Y

String

Chain's name

protocol_ name

Y

String

Protocol's name

pool_address

Y

String

Pool address

total_value

Y

BigDecimal

Price of the token

create_timestamp

N

Long

Token created time

underlying_infos

Y

List<UnderlyingInfo>

List of UnderlyingInfo

UnderlyingInfo Content

Parameter
Required
Type
Description

chain_name

Y

String

Chain's name

address

Y

String

Underlying token's address

price

N

BigDecimal

Current price of underlying Token

percentage

Y

BigDecimal

Percentage of the value of underlying Token in LpToken

Request Sample

curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X GET "https://api.blockin.ai/v2/token/lp_token/info?chain_name=Ethereum&address=0xdb3e5cf969c05625db344dea9c8b12515e235df3"

Successful Response Sample

{
    "success": true,
    "data": {
        "chain_name": "Ethereum",
        "address": "0xdb3e5cf969c05625db344dea9c8b12515e235df3",
        "protocol_name": "balancer2",
        "pool_address": "0xdb3e5cf969c05625db344dea9c8b12515e235df3",
        "total_value": 2943.2,
        "create_timestamp": 1625817232000,
        "underlying_infos": [
            {
                "chain_name": "Ethereum",
                "address": "0x584bc13c7d411c00c01a62e8019472de68768430",
                "price": 0.030407760302067392,
                "percentage": 0.26469897140975608977399713354465731434
            },
            {
                "chain_name": "Ethereum",
                "address": "0x2ba592f78db6436527729929aaf6c908497cb200",
                "price": 18.093427480921698104,
                "percentage": 0.07691693868502188952901947736038604268
            },
            {
                "chain_name": "Ethereum",
                "address": "0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d",
                "price": 1.362194917245545087,
                "percentage": 0.16269833847309137969025534238059541109
            },
            {
                "chain_name": "Ethereum",
                "address": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e",
                "price": 0.652368696981384131,
                "percentage": 0.03809681989290831900983534104438302139
            },
            {
                "chain_name": "Ethereum",
                "address": "0xbb0e17ef65f82ab018d8edd776e8dd940327b28b",
                "price": 7.460969559081550364,
                "percentage": 0.07591677477595066148887266890977292575
            },
            {
                "chain_name": "Ethereum",
                "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                "price": 2234.289884380773484824,
                "percentage": 0.28108986327878555456324909526956139582
            },
            {
                "chain_name": "Ethereum",
                "address": "0xbc396689893d065f41bc2c6ecbee5e0085233447",
                "price": 0.673779807026330994,
                "percentage": 0.06077432452603352346352947964702151758
            },
            {
                "chain_name": "Ethereum",
                "address": "0xdbdb4d16eda451d0503b854cf79d55697f90c8df",
                "price": 18.560111033337302925,
                "percentage": 0.03980796895845258248124146184362237135
            }
        ]
    },
    "error_code": null,
    "error_msg": null
}

Failed Response Sample

{
    "success": false,
    "data": null,
    "error_code": INVALID_PARAM,
    "error_msg": Param(address) is not LpToken
}

Supported Protocols

Ethereum

uniswap2

Ethereum

curve

Ethereum

balancer

Ethereum

balancer2

Ethereum

sushiswap

Ethereum

pancakeswap

Ethereum

frax

BSC

thena

BSC

biswap

BSC

dodoex

BSC

jetswap

BSC

apeswap3

BSC

traderjoexyz

BSC

fstswap

Arbitrum

dodoex

Arbitrum

traderjoexyz

Arbitrum

curve

Arbitrum

balancer2

Arbitrum

sushiswap

Arbitrum

pancakeswap

Arbitrum

camelot

Polygon

quickswap

Polygon

dmm_exchange

Polygon

dodoex

Polygon

balancer2

Polygon

sushiswap

Polygon

dfyn

Polygon

apeswap

Polygon

dystopia

Avalanche

traderjoexyz

Avalanche

pangolin

Avalanche

curve

Avalanche

dmm_exchange

Avalanche

sushiswap

Avalanche

frax

Avalanche

vaporfi

Avalanche

lydia

Avalanche

elk

Fantom

spookyswap

Fantom

equalizer

Fantom

beethovenx

Fantom

tomb

Fantom

curve

Fantom

wigoswap

Fantom

spiritswap

Fantom

yoshi

Fantom

frax

Cronos

vvs

Cronos

mmf3

Cronos

stablemmf

Cronos

crodex

Cronos

cronaswap

Cronos

candycity

PreviousQuery real-time token priceNextQuery symbol's price from foreign exchange

Last updated 1 year ago

Chain's name,support single chain's name.eg:eth,Ethereum.

😈
🐙
Enumeration