/sendQuery REST API Endpoint
Paramètres corporels
adresse
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
body
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
init_code
chaîne de caractères
Chargement en cours...
init_data
chaîne de caractères
Chargement en cours...
Retours
OK
booléen
Chargement en cours...
résultat
objet
Chargement en cours...
Demande
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/sendQuery' \2--en-tête 'accept: application/json' \3--en-tête 'Content-Type: application/json' \4--données '{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--en-tête 'accept: application/json' \3--en-tête 'Content-Type: application/json' \4--données '{5"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",6"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",7"ignore_chksig": false8}'
1const myHeaders = new Headers();2myHeaders.ajouter(« accept », « application/json »);3myHeaders.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 »,13en-têtes: myHeaders,14corps: brut,15redirection: « suivre »16};1718fetch("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery", requestOptions)19.puis((réponse) => réponse.texte())20.puis((résultat) => console.log(résultat))21.catch((erreur) => console.erreur(erreur));
1const myHeaders = new Headers();2myHeaders.ajouter(« accept », « application/json »);3myHeaders.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 »,13en-têtes: myHeaders,14corps: brut,15redirection: « suivre »16};1718fetch("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery", requestOptions)19.puis((réponse) => réponse.texte())20.puis((résultat) => console.log(résultat))21.catch((erreur) => console.erreur(erreur));
1import demandes2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/sendQuery"56charge utile = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",9"ignore_chksig": False10})11en-têtes = {12« accepter »: 'application/json',13« Content-Type »: 'application/json'14}1516réponse = demandes.demande(« POST », url, en-têtes=en-têtes, données=charge utile)1718imprimer(réponse.texte)19
1import demandes2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/sendQuery"56charge utile = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",9"ignore_chksig": False10})11en-têtes = {12« accepter »: 'application/json',13« Content-Type »: 'application/json'14}1516réponse = demandes.demande(« POST », url, en-têtes=en-têtes, données=charge utile)1718imprimer(réponse.texte)19
1nécessite « uri »2require « json »3nécessite « net/http »45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery")67http = Net::HTTP.new(url.host, url.port);8demande = Net::HTTP::POST.nouveau(URL)9demande[« accepter »] = « application/json »10demande[« Content-Type »] = « application/json »11demande.corps = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",14"ignore_chksig": false15})1617réponse = http.requête(requête)18affiche la réponse.read_body19
1nécessite « uri »2require « json »3nécessite « net/http »45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/sendQuery")67http = Net::HTTP.new(url.host, url.port);8demande = Net::HTTP::POST.nouveau(URL)9demande[« accepter »] = « application/json »10demande[« Content-Type »] = « application/json »11demande.corps = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"body": "te6cckEBAgEAfwABaq1OtvVRirN448WIo3H5j3WeOtpYAA3UZdr9NZ4U2Dh86HbHyUjHC86X/TNRc/5PlhCaz3jeAQCJgAvgrJ9r7Ajwe2rgY5w57NFRGpqa2028m2RFaXJBrfsAAEAQChBkCay0l1o/+cjOF35b1gQ8BJgdnLM/q7b+PYAZuGD4hnuRUg==",14"ignore_chksig": false15})1617réponse = http.requête(requête)18affiche la réponse.read_body19
Vous n'avez pas encore de compte ?
Créez votreendpoint Quicknode endpoint quelques secondes et commencez à développer
Commencez gratuitement