/sendQuery REST API Endpoint
Body Parameters
address
string
REQUIRED
Loading...
body
string
REQUIRED
Loading...
init_code
string
Loading...
init_data
string
Loading...
Returns
ok
boolean
Loading...
result
object
Loading...
Request
curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/sendQuery' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",
"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",
"ignore_chksig": false
}'const myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",
"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",
"ignore_chksig": false
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));import requests
import json
url = "https://docs-demo.ton-mainnet.quiknode.pro/sendQuery"
payload = json.dumps({
"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",
"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",
"ignore_chksig": False
})
headers = {
'accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "json"
require "net/http"
url = URI("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",
"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",
"ignore_chksig": false
})
response = http.request(request)
puts response.read_body
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free