GETGet address information

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/addressInformation
CU60

Get smart contract information for the specified account.

Query Parameters
addressstringrequired

Account address in any form.

use_v2boolean

Use the API v2 method. This option is not recommended.

Responses
balancestring

Account balance in nanograms as a decimal string. 1 GRAM = 1,000,000,000 nanograms.

codestring

Smart contract code in BoC format, base64 encoded. null or empty if the account has no code.

datastring

Smart contract persistent storage in BoC format, base64 encoded. null or empty if the account has no data.

frozen_hashstring

Hash of the frozen contract state, base64 encoded. Present only for frozen accounts; otherwise null.

last_transaction_hashstring

Hash of the most recent transaction of the account, base64 encoded.

last_transaction_ltstring

Logical time (lt) of the most recent transaction of the account, as a decimal string.

statusstring

Account status, such as active, uninit, or frozen.

suspendedboolean

Returns true if the account has been suspended by a governance decision; otherwise false.

X-API-KEY
Request
cURL
curl -X GET "https://ton-mainnet.nodit.io/api/v3/addressInformation?address=EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN&use_v2=true" \
  -H "X-API-KEY: {YOUR_API_KEY}"
Response
Example · 200
{
  "balance": "450160030",
  "code": "te6ccgECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDj...",
  "data": "te6ccgEBAQEAKwAAUQAAATIpqaMXHdI7VXoYJ+xuiqLSt/SBjcdtHT/DDRyy4Xi10aI/rGhA",
  "last_transaction_lt": "119175459000033",
  "last_transaction_hash": "RstqIOXPnun8qlq22k20gYz3C0rWFJG844ogiHhM4jc=",
  "frozen_hash": null,
  "status": "active"
}