Portal pengembangan
Tema

Get EVM Address Information#

Query basic information for an EVM address, including its native token balance, transaction count, first and last transaction times, and contract creation and call details for contract addresses. EVM chains only. If the address has no on-chain records, data returns an empty array.

Supported chains: see Get Address API Supported Chains (apiName: information-evm).

Request URL#

GET
https://web3.okx.com/api/v6/explorer/address/information-evm

Request Parameters#

ParameterTypeRequiredDescription
chainIndexStringYesUnique identifier of the chain, e.g., 1 for ETH. EVM chains only. See Get Address API Supported Chains for supported values.
addressStringYesEVM address.

Response Parameters#

ParameterTypeDescription
addressStringAddress.
isValidatorBooleanWhether the address is a validator node.
balanceStringNative token balance.
balanceSymbolStringSymbol of the native token balance (e.g., Gnosis chain returns ETH).
transactionCountStringNumber of transactions for the address.
firstTransactionTimeStringTime of the address's first transaction.
lastTransactionTimeStringTime of the address's most recent transaction.
contractAddressBooleanWhether the address is a contract address (used to determine whether it is an EOA).
createContractAddressStringAddress that created the contract. An empty string for non-contract addresses.
createContractTransactionHashStringTransaction hash that created the contract. An empty string for non-contract addresses.
contractCorrespondingTokenStringToken corresponding to the contract. An empty string for non-contract addresses.
contractCallsStringNumber of contract calls. An empty string for non-contract addresses.
contractCallingAddressesStringNumber of addresses that have called the contract. An empty string for non-contract addresses.

Request Example#

shell
curl --location --request GET 'https://web3.okx.com/api/v6/explorer/address/information-evm?chainIndex=1&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045' \
--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": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
      "isValidator": false,
      "balance": "744.5387964072138",
      "balanceSymbol": "ETH",
      "transactionCount": "1568",
      "firstTransactionTime": "1438922865000",
      "lastTransactionTime": "1753690000000",
      "contractAddress": false,
      "createContractAddress": "",
      "createContractTransactionHash": "",
      "contractCorrespondingToken": "",
      "contractCalls": "",
      "contractCallingAddresses": ""
    }
  ]
}