TriportRPC

getAddressInformation

TON / https://triport.io/rpc/ton

Minimum tier: Pro

TON method guide

Last updated:

getAddressInformation reads the state of one TON account. It returns the balance as a decimal string, the account state, the last transaction ID, and, when present, the account code, data, and block reference.

Use this method when an application needs the full account-state summary. A raw workchain:hex address and a user-friendly base64url address are both accepted. To read transactions instead of current state, use getTransactions; to execute a contract getter, use runGetMethod.

The optional seqno asks for state at a masterchain block. That makes the request retention-sensitive: the selected liteserver must have state for that point, and a successful genesis block lookup does not by itself prove continuous historical state.

Parameters

getAddressInformation parameters
NameTypeRequiredDescription
addressTonAddressYes
seqnoSeqnoNo

Returns

getAddressInformation return value
FieldType
resultAccountInformation

Examples

curl https://triport.io/rpc/ton \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getAddressInformation","params":["<address>","<seqno>"]}'
const res = await fetch("https://triport.io/rpc/ton", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getAddressInformation",
  "params": [
    "<address>",
    "<seqno>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/ton",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"getAddressInformation","params":["<address>","<seqno>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: TON.
  3. Clusters: mainnet.
  4. Credit cost: 5 per call.

FAQ

What does getAddressInformation do?
Returns an account's balance, state, code, data, and last-transaction reference.
How many credits does getAddressInformation cost?
getAddressInformation costs 5 credit(s) per call on Triport by default.
Is getAddressInformation available over WebSocket?
getAddressInformation is an HTTP JSON-RPC method.