/transaction/fee-estimate REST API Endpoint
Körperparameter
tx
Zeichenkette
ERFORDERLICH
Wird geladen...
Rücksendungen
Gewicht
Objekt
Wird geladen...
refTime
Zeichenkette
Wird geladen...
proofSize
Zeichenkette
Wird geladen...
class
Zeichenkette
Wird geladen...
partialFee
Zeichenkette
Wird geladen...
Anfrage
1# AssetHub (default) - for transaction fee estimation on AssetHub parachain2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/transaction/fee-estimate' \3--header 'Content-Type: application/json' \4--header 'Accept: application/json' \5--Daten '{6"tx": "YOUR_TRANSACTION"7}'89# Polkadot Relaychain - for transaction fee estimation on Relaychain (requires /rc prefix)10curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/transaction/fee-estimate' \11--header 'Content-Type: application/json' \12--header 'Accept: application/json' \13--Daten '{14"tx": "YOUR_TRANSACTION"15}'
1# AssetHub (default) - for transaction fee estimation on AssetHub parachain2curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/transaction/fee-estimate' \3--header 'Content-Type: application/json' \4--header 'Accept: application/json' \5--Daten '{6"tx": "YOUR_TRANSACTION"7}'89# Polkadot Relaychain - for transaction fee estimation on Relaychain (requires /rc prefix)10curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/transaction/fee-estimate' \11--header 'Content-Type: application/json' \12--header 'Accept: application/json' \13--Daten '{14"tx": "YOUR_TRANSACTION"15}'
1// For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)23const myHeaders = new Headers();4myHeaders.anhängen("Content-Type", "application/json");5myHeaders.anhängen("Accept", "application/json");67const raw = JSON.stringify({8"tx": "YOUR_TRANSACTION"9});1011const requestOptions = {12Methode: „POST“,13Überschriften: myHeaders,14Körper: raw,15Weiterleitung: „follow“16};1718fetch("{(url}}transaction/fee-estimate", requestOptions)19.dann((Antwort) => Antwort.text())20.dann((Ergebnis) => Konsole.log(Ergebnis))21.catch((Fehler) => Konsole.Fehler(Fehler));
1// For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)23const myHeaders = new Headers();4myHeaders.anhängen("Content-Type", "application/json");5myHeaders.anhängen("Accept", "application/json");67const raw = JSON.stringify({8"tx": "YOUR_TRANSACTION"9});1011const requestOptions = {12Methode: „POST“,13Überschriften: myHeaders,14Körper: raw,15Weiterleitung: „follow“16};1718fetch("{(url}}transaction/fee-estimate", requestOptions)19.dann((Antwort) => Antwort.text())20.dann((Ergebnis) => Konsole.log(Ergebnis))21.catch((Fehler) => Konsole.Fehler(Fehler));
1import Anfragen2# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)34import json56url = "{(url}}transaction/fee-estimate"78Nutzlast = json.dumps({9"tx": "YOUR_TRANSACTION"10})11Überschriften = {12„Content-Type“: 'application/json',13„Akzeptieren“: 'application/json'14}1516Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1718Drucken(Antwort.text)19
1import Anfragen2# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)34import json56url = "{(url}}transaction/fee-estimate"78Nutzlast = json.dumps({9"tx": "YOUR_TRANSACTION"10})11Überschriften = {12„Content-Type“: 'application/json',13„Akzeptieren“: 'application/json'14}1516Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1718Drucken(Antwort.text)19
1require "uri"2require "json"3# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)45require „net/http“67url = URI("{(url}}transaction/fee-estimate")89http = Net::HTTP.new(url.host, url.port);10Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12Anfrage[„Akzeptieren“] = „application/json“13Anfrage.Inhalt = JSON.dump({14"tx": "YOUR_TRANSACTION"15})1617Antwort = http.Anfrage(Anfrage)18gibt die Antwort aus.read_body19
1require "uri"2require "json"3# For Polkadot Relaychain access, add '/rc' after https://docs-demo.dot-mainnet.quiknode.pro/ (e.g., https://docs-demo.dot-mainnet.quiknode.pro/rc/accounts/...)45require „net/http“67url = URI("{(url}}transaction/fee-estimate")89http = Net::HTTP.new(url.host, url.port);10Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„Content-Type“] = „application/json“12Anfrage[„Akzeptieren“] = „application/json“13Anfrage.Inhalt = JSON.dump({14"tx": "YOUR_TRANSACTION"15})1617Antwort = http.Anfrage(Anfrage)18gibt die Antwort aus.read_body19
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen