๐ฐ Get account balance
Code samples
GET /api/v1/trx/account/{address}/balance
Returns the TRX balance of a Tron account and TRC20 balances where available
๐ ๏ธ Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| address | path | string | true | Tron address in base58 format |
Example responses
200 Response
{
"address": "TLWKepDBC8RZjAhtWyNqASyzgyVyHUuS7o",
"balance": 0,
"trc20": {
"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": "6423595359"
}
}
๐ Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
| 400 | Bad Request | Bad request (invalid address format) | None |
| 500 | Internal Server Error | Internal server error | None |
๐ Response Schema
Status Code 200
| Name | Type | Required | Restrictions | Description |
|---|---|---|---|---|
| ยป address | string | false | none | none |
| ยป balance | integer | false | none | Account balance in SUN (1 TRX = 1,000,000 SUN) |
| ยป trc20 | object | false | none | TRC20 token balances, if available |