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>"
}Execute get method for account
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>"
}account ID
"0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
contract get method name
"get_wallet_address"
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.
Show child attributes
Was this page helpful?