Portal pentru dezvoltatori
Temă

Get Token Holder List#

Get the list of positions of a token under a chain, return only the address with a balance of top10000.

Request Path#

GET
https://web3.okx.com/api/v5/xlayer/token/position-list

Request Parameters#

ParameterTypeRequiredDescription
chainShortNameStringYesThe abbreviated name of the blockchain network, e.g, XLAYER.
tokenContractAddressStringYesToken Contract Address
holderAddressStringNoHolder address
pageStringNoPage
limitStringNoThe number of results returned per request. The maximum is 50. The default is 20.

Response Parameters#

ParameterTypeDescription
pageStringCurrent page number
limitStringThe amount of data
totalPageStringTotal number of pages
chainFullNameStringThe full name of the blockchain network, e.g. X Layer
chainShortNameStringThe abbreviated name of the blockchain network, e.g. XLAYER
circulatingSupplyStringCirculating Supply
positionListArrayPosition List
> holderAddressStringHolder Address
> amountStringHolding amount
> valueUsdStringValue of positions, Unit: USD
> positionChange24hString24 hour position changes
> rankStringPosition ranking

Request Example#

shell
curl --location --request GET 'https://web3.okx.com/api/v5/xlayer/token/position-list?chainShortName=xlayer&tokenContractAddress=0x1e4a5963abfd975d8c9021ce480b42188849d41d&limit=1' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'

Response Example#

json
{
    "code": "0",
    "msg": "",
    "data": [
        {
            "page": "1",
            "limit": "1",
            "totalPage": "10000",
            "chainFullName": "X Layer",
            "chainShortName": "XLAYER",
            "circulatingSupply": "158626664755.6",
            "positionList": [
                {
                    "holderAddress": "0xb543ef701c5f5f00de7eb98fd8138b0e33327893",
                    "amount": "0.000006",
                    "valueUsd": "0.00000600354",
                    "positionChange24h": "",
                    "rank": "1"
                }
            ]
        }
    ]
}