Skip to main content

/sendQuery REST API Endpoint

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.

Updated on
Oct 23, 2024

/sendQuery REST API Endpoint

Body Parameters

address
string
REQUIRED
The address in any format
body
string
REQUIRED
The b64-encoded boc-serialized cell with message body
init_code
string
The b64-encoded boc-serialized cell with init-code
init_data
string
The b64-encoded boc-serialized cell with init-data

Returns

ok
boolean
Indicates that the request was successful
result
object
The result object which contains the result fields
Request
1
curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/sendQuery' \
2
--header 'accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",
6
"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",
7
"ignore_chksig": false
8
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free