TON
getAddressBalance12 kredi
Returns the balance of an account, in nanotons.
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
| address | string | Account address, in raw (`0:<hex>`) or user-friendly (base64, base64url) form. |
| seqno | number | Masterchain block seqno to read the state at. The latest state when omitted. (isteğe bağlı) |
Dönüş değeri
Tür
string
Balance in nanotons (1 TON = 10^9 nanotons). 0 for an account that does not exist.
Kod örnekleri
curl https://holy-burned-sky-ton-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getAddressBalance",
"params": {
"address": "EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N"
}
}'