curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getAddressInformation
{
"balance": "<string>",
"state": "<string>",
"code": "<string>",
"data": "<string>",
"last_transaction_id": {
"lt": "<string>",
"hash": "<string>"
},
"error": {},
"id": 123
}
curl --request GET \
--url https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getAddressInformation
{
"balance": "<string>",
"state": "<string>",
"code": "<string>",
"data": "<string>",
"last_transaction_id": {
"lt": "<string>",
"hash": "<string>"
},
"error": {},
"id": 123
}
getAddressInformation
method retrieves information about a specific address on the TON blockchain. This includes details such as the balance, state, code, and data associated with the address, as well as the last transaction ID.
address
(string, required) — The address for which information is being requested. Example: EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2
.seqno
(int, optional) — the Masterchain seqno. You can get the Masterchain seqno with getMasterchainInfo | TON v2.seqno
:
curl --request GET \
--url 'https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v2/getAddressInformation?address=EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2&seqno=45792554' \
--header 'accept: application/json'
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": "getAddressInformation",
"params": {
"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2"
}
}'
balance
(string) — The balance of the address.state
(string) — The state of the address.code
(string) — The code of the address.data
(string) — The data of the address.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.error
(object) — Error information, if any.id
(integer) — The request ID.getAddressInformation
method in TON is for applications that need to display or utilize the current state and balance of a specific address. For example, a wallet application may use this method to show the user’s balance and transaction history.The address to get information for
Information about the specified address
The response is of type object
.
Was this page helpful?