The getExtendedAddressInformation
method retrieves extended information about a specific address on the TON blockchain. This method provides more detailed information compared to the basic getAddressInformation
method, including the account type, code hash, and data hash.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
address
(string, required) β The address for which extended information is being requested. Example:EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2
.
JSON-RPC example
curl -X POST \
'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/jsonRPC' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getExtendedAddressInformation",
"params": {
"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
}
}'
Response
address
(string) β The address in human-readable form.balance
(string) β The balance of the address in nanotons.state
(string) β The state of the address (active, uninitialized, etc.).last_transaction_id
(object) β The last transaction ID, containing:lt
(string) β The logical time of the last transaction.hash
(string) β The hash of the last transaction.
block_id
(object) β The block ID where the address state was last updated, containing:workchain
(integer) β The workchain ID.shard
(string) β The shard ID.seqno
(integer) β The sequence number.
code_hash
(string) β The hash of the contract code.data_hash
(string) β The hash of the contract data.acc_type
(integer) β The account type.acc_type_name
(string) β The human-readable account type name.
Use case
A possible use case for the getExtendedAddressInformation
method in TON is for applications that need detailed information about an address, such as wallet applications or blockchain explorers. This method can be used to display comprehensive account information, including the contract details and the latest state of the address.
Try the getExtendedAddressInformation
RPC method yourself
getExtendedAddressInformation
RPC method yourself