/v1/view REST API Endpoint
Abfrageparameter
Ledger-Version
Zeichenkette
ERFORDERLICH
Wird geladen...
Körperparameter
function
Zeichenkette
ERFORDERLICH
Wird geladen...
type_arguments
Zeichenkette
ERFORDERLICH
Wird geladen...
arguments
Zeichenkette
ERFORDERLICH
Wird geladen...
Rücksendungen
Ergebnis
Wird geladen...
Anfrage
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/view \3--header 'Accept: application/json, application/x-bcs' \4--header 'Content-Type: application/json' \5--Daten '{6"function": "FUNCTION",7"type_arguments": [8"string"9],10"arguments": [11null12]13}'
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/view \3--header 'Accept: application/json, application/x-bcs' \4--header 'Content-Type: application/json' \5--Daten '{6"function": "FUNCTION",7"type_arguments": [8"string"9],10"arguments": [11null12]13}'
1const userUrl = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view';2const requestData = {3function: 'FUNCTION',4type_arguments: ['string'],5arguments: [null]6};78fetch(userUrl, {9Methode: 'POST',10headers: {11'Accept': 'application/json, application/x-bcs',12'Content-Type': 'application/json'13},14body: JSON.stringify(requestData)15})16.dann(Antwort => Antwort.json())17.then(data => {18console.log('Response:', data);19})20.catch(Fehler => {21console.error('Error:', error);22});23
1const userUrl = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view';2const requestData = {3function: 'FUNCTION',4type_arguments: ['string'],5arguments: [null]6};78fetch(userUrl, {9Methode: 'POST',10headers: {11'Accept': 'application/json, application/x-bcs',12'Content-Type': 'application/json'13},14body: JSON.stringify(requestData)15})16.dann(Antwort => Antwort.json())17.then(data => {18console.log('Response:', data);19})20.catch(Fehler => {21console.error('Error:', error);22});23
1import Anfragen2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view'56Überschriften = {7'Accept': 'application/json, application/x-bcs',8„Content-Type“: 'application/json'9}1011Daten = {12"function": "FUNCTION",13"type_arguments": [14"string"15],16"arguments": [17Keine18]19}2021response = requests.post(url, headers=headers, json=data)22Drucken(Antwort.json())23
1import Anfragen2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/view'56Überschriften = {7'Accept': 'application/json, application/x-bcs',8„Content-Type“: 'application/json'9}1011Daten = {12"function": "FUNCTION",13"type_arguments": [14"string"15],16"arguments": [17Keine18]19}2021response = requests.post(url, headers=headers, json=data)22Drucken(Antwort.json())23
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/view')5http = Net::HTTP.new(url.host, URL.Port)6http.use_ssl = true78Überschriften = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213Daten = {14"function" => "FUNCTION",15"type_arguments" => [16"string"17],18"arguments" => [19nil20]21}2223Anfrage = Netto::HTTP::POST.new(URL.Pfad, Header)24Anfrage.Inhalt = Daten.to_json2526Antwort = http.Anfrage(Anfrage)27gibt die Antwort aus.Hauptteil28
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/view')5http = Net::HTTP.new(url.host, URL.Port)6http.use_ssl = true78Überschriften = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213Daten = {14"function" => "FUNCTION",15"type_arguments" => [16"string"17],18"arguments" => [19nil20]21}2223Anfrage = Netto::HTTP::POST.new(URL.Pfad, Header)24Anfrage.Inhalt = Daten.to_json2526Antwort = http.Anfrage(Anfrage)27gibt die Antwort aus.Hauptteil28
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen