Skip to main content
POST
/
v2
/
blockchain
/
accounts
/
{account_id}
/
methods
/
{method_name}
cURL
curl --request POST \
  --url https://tonapi.io/v2/blockchain/accounts/{account_id}/methods/{method_name} \
  --header 'Content-Type: application/json' \
  --data '
{
  "args": [
    {
      "type": "int257",
      "value": "0xfa01d78381ae32"
    }
  ]
}
'
{
  "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"

Body

application/json

Request body for executing a GET method on a blockchain account via POST. This format allows passing arguments in the request body instead of query parameters, which is especially useful for large or complex input data.

args
object[]
required

Response

method execution result

success
boolean
required
Example:

true

exit_code
integer
required

tvm exit code

Example:

0

stack
object[]
required
decoded
any