Skip to main content
GET
/
v2
/
blockchain
/
accounts
/
{account_id}
/
methods
/
{method_name}
cURL
curl --request GET \
  --url https://tonapi.io/v2/blockchain/accounts/{account_id}/methods/{method_name}
{
  "success": true,
  "exit_code": 0,
  "stack": [
    {
      "type": "cell",
      "cell": "<string>",
      "slice": "<string>",
      "num": "",
      "tuple": []
    }
  ],
  "decoded": "<unknown>"
}

Path Parameters

account_id
string<address>
required

account ID

Example:

"0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"

method_name
string
required

contract get method name

Example:

"get_wallet_address"

Query Parameters

args
string[]

Array of method arguments in string format. Supported value formats:

  • "NaN" for Not-a-Number type
  • "Null" for Null type
  • Decimal integers for tinyint type (e.g., "100500")
  • 0x-prefixed hex strings for int257 type (e.g., "0xfa01d78381ae32")
  • TON blockchain addresses for slice type (e.g., "0:6e731f2e28b73539a7f85ac47ca104d5840b229351189977bb6151d36b5e3f5e")
  • Base64-encoded BOC for cell type (e.g., "te6ccgEBAQEAAgAAAA==")
  • Hex-encoded BOC for slice type (e.g., "b5ee9c72010101010002000000")
Example:
[
"0:9a33970f617bcd71acf2cd28357c067aa31859c02820d8f01d74c88063a8f4d8"
]

Response

method execution result

success
boolean
required
Example:

true

exit_code
integer
required

tvm exit code

Example:

0

stack
object[]
required
decoded
any