---
agentTools:
  projectIndex: https://docs.tonxapi.com/llms.txt
---

# Get Account Jetton Balance

Get Jetton balance by the owner address

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "email": "support@tonxapi.com",
      "name": "TONX API",
      "url": "https://tonxapi.com"
    },
    "description": "TONX API V2",
    "termsOfService": "https://tonxapi.com/terms-of-use",
    "title": "TONX API V2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://{network}-rpc.tonxapi.com/v2/json-rpc",
      "variables": {
        "network": {
          "default": "mainnet",
          "enum": [
            "mainnet",
            "testnet"
          ]
        }
      }
    },
    {
      "url": "http://{network}-rpc.tonxapi.com/v2/json-rpc",
      "variables": {
        "network": {
          "default": "mainnet",
          "enum": [
            "mainnet",
            "testnet"
          ]
        }
      }
    }
  ],
  "paths": {
    "/{API_KEY}": {
      "post": {
        "description": "Get Jetton balance by the owner address",
        "parameters": [
          {
            "description": "Your API KEY",
            "in": "path",
            "name": "API_KEY",
            "required": true,
            "schema": {
              "default": "3eadfde7-6e4e-4dcd-ac8c-776dcd1ec73e",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "id": {
                    "default": 1,
                    "type": "integer"
                  },
                  "jsonrpc": {
                    "default": "2.0",
                    "type": "string"
                  },
                  "method": {
                    "default": "getAccountJettonBalance",
                    "type": "string"
                  },
                  "params": {
                    "properties": {
                      "account_id": {
                        "default": "EQAj-peZGPH-cC25EAv4Q-h8cBXszTmkch6ba6wXC8BM4xdo",
                        "type": "string"
                      },
                      "currencies": {
                        "default": [
                          "[\"ton\"",
                          "\"usd\"",
                          "\"twd\"]"
                        ],
                        "type": "array"
                      },
                      "jetton_id": {
                        "default": "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs",
                        "type": "string"
                      },
                      "supported_extensions": {
                        "default": [
                          "[\"custom_payload\"]"
                        ],
                        "type": "array"
                      }
                    },
                    "required": [
                      "account_id",
                      "jetton_id"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "jsonrpc",
                  "method",
                  "params"
                ],
                "type": "object"
              }
            }
          },
          "description": "JSON-RPC Request",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "id": {
                      "default": "1",
                      "type": "integer"
                    },
                    "jsonrpc": {
                      "default": "2.0",
                      "type": "string"
                    },
                    "result": {
                      "$ref": "#/components/schemas/dto.GetAccountJettonBalanceResponse",
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/error.JsonRpcError",
                      "type": "object"
                    },
                    "id": {
                      "default": "1",
                      "type": "integer"
                    },
                    "jsonrpc": {
                      "default": "2.0",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Bad Request"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/error.JsonRpcError",
                      "type": "object"
                    },
                    "id": {
                      "default": "1",
                      "type": "integer"
                    },
                    "jsonrpc": {
                      "default": "2.0",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Internal Server Error"
          }
        },
        "summary": "Get Account Jetton Balance",
        "tags": [
          "Accounts"
        ],
        "x-codegen-request-body-name": "RPC_REQUEST"
      }
    }
  },
  "components": {
    "schemas": {
      "dto.GetAccountJettonBalanceResponse": {
        "properties": {
          "balance": {
            "type": "string"
          },
          "extensions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "jetton": {
            "$ref": "#/components/schemas/tonapi.JettonPreview"
          },
          "lock": {
            "$ref": "#/components/schemas/tonapi.OptJettonBalanceLock"
          },
          "price": {
            "$ref": "#/components/schemas/tonapi.OptTokenRates"
          },
          "wallet_address": {
            "$ref": "#/components/schemas/tonapi.AccountAddress"
          }
        },
        "type": "object"
      },
      "error.JsonRpcError": {
        "properties": {
          "code": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          },
          "time": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "tonapi.AccountAddress": {
        "properties": {
          "address": {
            "type": "string"
          },
          "icon": {
            "$ref": "#/components/schemas/tonapi.OptString"
          },
          "is_scam": {
            "description": "Is this account was marked as part of scammers activity.",
            "type": "boolean"
          },
          "is_wallet": {
            "type": "boolean"
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tonapi.OptString"
              }
            ],
            "description": "Display name. Data collected from different sources like moderation lists, dns, collections names\nand over.",
            "type": "object"
          }
        },
        "type": "object"
      },
      "tonapi.JettonBalanceLock": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "till": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "tonapi.JettonPreview": {
        "properties": {
          "address": {
            "type": "string"
          },
          "decimals": {
            "type": "integer"
          },
          "image": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "verification": {
            "$ref": "#/components/schemas/tonapi.JettonVerificationType"
          }
        },
        "type": "object"
      },
      "tonapi.JettonVerificationType": {
        "enum": [
          "whitelist",
          "blacklist",
          "none"
        ],
        "type": "string",
        "x-enum-varnames": [
          "JettonVerificationTypeWhitelist",
          "JettonVerificationTypeBlacklist",
          "JettonVerificationTypeNone"
        ]
      },
      "tonapi.OptJettonBalanceLock": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/tonapi.JettonBalanceLock"
          }
        },
        "type": "object"
      },
      "tonapi.OptString": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "tonapi.OptTokenRates": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/tonapi.TokenRates"
          }
        },
        "type": "object"
      },
      "tonapi.OptTokenRatesDiff24h": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/tonapi.TokenRatesDiff24h"
          }
        },
        "type": "object"
      },
      "tonapi.OptTokenRatesDiff30d": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/tonapi.TokenRatesDiff30d"
          }
        },
        "type": "object"
      },
      "tonapi.OptTokenRatesDiff7d": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/tonapi.TokenRatesDiff7d"
          }
        },
        "type": "object"
      },
      "tonapi.OptTokenRatesPrices": {
        "properties": {
          "set": {
            "type": "boolean"
          },
          "value": {
            "$ref": "#/components/schemas/tonapi.TokenRatesPrices"
          }
        },
        "type": "object"
      },
      "tonapi.TokenRates": {
        "properties": {
          "diff_24h": {
            "$ref": "#/components/schemas/tonapi.OptTokenRatesDiff24h"
          },
          "diff_30d": {
            "$ref": "#/components/schemas/tonapi.OptTokenRatesDiff30d"
          },
          "diff_7d": {
            "$ref": "#/components/schemas/tonapi.OptTokenRatesDiff7d"
          },
          "prices": {
            "$ref": "#/components/schemas/tonapi.OptTokenRatesPrices"
          }
        },
        "type": "object"
      },
      "tonapi.TokenRatesDiff24h": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "tonapi.TokenRatesDiff30d": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "tonapi.TokenRatesDiff7d": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "tonapi.TokenRatesPrices": {
        "additionalProperties": {
          "type": "number"
        },
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 106,
      "2": 94,
      "3": 107,
      "4": 116,
      "5": 212,
      "6": 19,
      "7": 183,
      "8": 128,
      "9": 227,
      "10": 248,
      "11": 126
    }
  }
}
```