Blockchain

GET /v2/blockchain/accounts/{account_id}/methods/{method_name}

Execute get method for account

Request

  • Base URL
    https://tonapi.io
  • Auth
    none declared

Path parameters

account_idstring address required
Example:0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621

account ID

method_namestring required
Example:get_wallet_address

contract get method name

Query parameters

argsstring[]

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")
[
  "0:9a33970f617bcd71acf2cd28357c067aa31859c02820d8f01d74c88063a8f4d8"
]

Response

method execution result

decodedunknown
exit_codeinteger required

tvm exit code

successboolean required

Example response

{
  "stack": [
    {
      "tuple": [],
      "type": "cell"
    }
  ],
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.