/sendQuery REST API Endpoint
Paramètres du corps
adresse
chaîne de caractères
OBLIGATOIRE
Chargement...
body
chaîne de caractères
OBLIGATOIRE
Chargement...
init_code
chaîne de caractères
Chargement...
init_data
chaîne de caractères
Chargement...
Renvoie
ok
booléen
Chargement...
résultat
objet
Chargement...
Requête
1curl --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": false8}'
1curl --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": false8}'
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3mesEnTêtes.ajouter("Content-Type", "application/json");45const brut = JSON.stringify({6"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",7"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",8"ignore_chksig": false9});1011const requestOptions = {12méthode: « POST »,13headers: myHeaders,14body: raw,15redirect: "follow"16};1718fetch("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery", requestOptions)19.then((response) => response.text())20.then((result) => console.log(result))21.catch((error) => console.error(error));
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3mesEnTêtes.ajouter("Content-Type", "application/json");45const brut = JSON.stringify({6"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",7"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",8"ignore_chksig": false9});1011const requestOptions = {12méthode: « POST »,13headers: myHeaders,14body: raw,15redirect: "follow"16};1718fetch("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery", requestOptions)19.then((response) => response.text())20.then((result) => console.log(result))21.catch((error) => console.error(error));
1import requests2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/sendQuery"56payload = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",9"ignore_chksig": False10})11headers = {12'accept': 'application/json',13'Content-Type': 'application/json'14}1516response = requests.request("POST", url, headers=headers, data=payload)1718print(response.text)19
1import requests2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/sendQuery"56payload = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",9"ignore_chksig": False10})11headers = {12'accept': 'application/json',13'Content-Type': 'application/json'14}1516response = requests.request("POST", url, headers=headers, data=payload)1718print(response.text)19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery")67http = Net::HTTP.new(url.host, url.port);8request = Net::HTTP::Post.new(url)9request["accept"] = "application/json"10request["Content-Type"] = "application/json"11request.body = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",14"ignore_chksig": false15})1617response = http.request(request)18puts response.read_body19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery")67http = Net::HTTP.new(url.host, url.port);8request = Net::HTTP::Post.new(url)9request["accept"] = "application/json"10request["Content-Type"] = "application/json"11request.body = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",14"ignore_chksig": false15})1617response = http.request(request)18puts response.read_body19
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement