SendQuery
Send query - unpacked external message. This method takes address, body and init-params (if any), packs it to external message and sends to network. All params should be boc-serialized.
Authorizations
Body
addressstringRequired
Address in any format
bodystringRequired
b64-encoded boc-serialized cell with message body
init_codestringOptionalDefault:
b64-encoded boc-serialized cell with init-code
""
init_datastringOptionalDefault:
b64-encoded boc-serialized cell with init-data
""
Responses
200
Successful Response
application/json
422
Validation Error
504
Lite Server Timeout
post
POST /sendQuery HTTP/1.1
Host: ton.nownodes.io
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"address": "text",
"body": "text",
"init_code": "",
"init_data": ""
}
{
"ok": true,
"result": "text",
"error": "text",
"code": 1
}