Skip to main content
POST
/
sendQuery
Send Query
curl --request POST \
  --url https://toncenter.com/api/v2/sendQuery \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "<string>",
  "body": "<string>",
  "init_code": "",
  "init_data": ""
}'
{
  "ok": true,
  "result": "<string>",
  "error": "<string>",
  "code": 123
}

Body

application/json
address
string
required

Address in any format

body
string
required

b64-encoded boc-serialized cell with message body

init_code
string
default:""

b64-encoded boc-serialized cell with init-code

init_data
string
default:""

b64-encoded boc-serialized cell with init-data

Response

Successful Response

ok
boolean
required
result
error
string
code
integer
I