Get Address Information#
Get the information of an address, you can get the detail information such as balance, token balance, number of contract calls, contract corresponding tokens.
Request Path#
GET
https://web3.okx.com/api/v5/xlayer/address/information-evmRequest Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
| chainShortName | String | Yes | The abbreviated name of the blockchain network, e.g, XLAYER |
| address | String | Yes | Address |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
| address | String | Ordinary address |
| balance | String | Native token balance of the address |
| balanceSymbol | String | Symbol of native token |
| transactionCount | String | The transaction amount of the address |
| firstTransactionTime | String | The time when the first transaction occurred of this address |
| lastTransactionTime | String | The last transaction time of this address |
| contractAddress | Bol | Whether it is the contract validator address |
| createContractAddress | String | Contract creator address |
| createContractTransactionHash | String | The transaction hash that created the smart contract |
| contractCorrespondingToken | String | Corresponding token |
| contractCalls | String | The number of times the contract was called in the last 30 days. External and internal transactions are counted. |
| contractCallingAddresses | String | The number od addresses that called the contract in the last 30 days. |
Request Example#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/xlayer/address/information-evm?address=0x1e4a5963abfd975d8c9021ce480b42188849d41d&chainShortName=xlayer' \
--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": [
{
"address": "0x1e4a5963abfd975d8c9021ce480b42188849d41d",
"balance": "0",
"balanceSymbol": "OKB",
"transactionCount": "608262",
"firstTransactionTime": "",
"lastTransactionTime": "1755569321000",
"contractAddress": true,
"createContractAddress": "0x2a3dd3eb832af982ec71669e178424b10dca2ede",
"createContractTransactionHash": "0x1c17ce8a0afdd2ca0ff546ef3076f1f6ebb867072db6a27029a2a4ab6764825b",
"contractCorrespondingToken": "USDT",
"contractCalls": "328353",
"contractCallingAddresses": "27164"
}
]
}
