starknet_estimateMessageFee RPC Method
Parameter
MSG_FROM_L1
Objekt
ERFORDERLICH
Wird geladen...
from_address
Zeichenkette
ERFORDERLICH
Wird geladen...
to_address
Zeichenkette
ERFORDERLICH
Wird geladen...
entry_point_selector
Zeichenkette
ERFORDERLICH
Wird geladen...
payload
Array
ERFORDERLICH
Wird geladen...
block_id
Zeichenkette
ERFORDERLICH
Wird geladen...
Rücksendungen
Ergebnis
Array
Wird geladen...
l1_data_gas_consumed
Zeichenkette
Wird geladen...
l1_data_gas_price
Zeichenkette
Wird geladen...
l1_gas_consumed
Zeichenkette
Wird geladen...
l1_gas_price
Zeichenkette
Wird geladen...
l2_gas_consumed
Zeichenkette
Wird geladen...
l2_gas_price
Zeichenkette
Wird geladen...
overall_fee
Zeichenkette
Wird geladen...
unit
Zeichenkette
Wird geladen...
Anfrage
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--data '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_estimateMessageFee",10"params": [11{12"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",13"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",14"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",15"payload": [16"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",17"0x2386f26fc10000",18„0x0“19]20},21„aktuell“22]23}'
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--data '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_estimateMessageFee",10"params": [11{12"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",13"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",14"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",15"payload": [16"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",17"0x2386f26fc10000",18„0x0“19]20},21„aktuell“22]23}'
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3const myHeaders = new Headers();4myHeaders.anhängen("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8„id“: 1,9„jsonrpc“: "2.0",10"method": "starknet_estimateMessageFee",11„params“: [12{13"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",14"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",15"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",16"payload": [17"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",18"0x2386f26fc10000",19„0x0“20]21},22„aktuell“23]24});2526const requestOptions = {27method: "POST",28Überschriften: myHeaders,29body: raw,30Weiterleitung: „follow“31};3233fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)34.dann((Antwort) => Antwort.text())35.dann((Ergebnis) => Konsole.log(Ergebnis))36.catch((Fehler) => Konsole.Fehler(Fehler));
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3const myHeaders = new Headers();4myHeaders.anhängen("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8„id“: 1,9„jsonrpc“: "2.0",10"method": "starknet_estimateMessageFee",11„params“: [12{13"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",14"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",15"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",16"payload": [17"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",18"0x2386f26fc10000",19„0x0“20]21},22„aktuell“23]24});2526const requestOptions = {27method: "POST",28Überschriften: myHeaders,29body: raw,30Weiterleitung: „follow“31};3233fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)34.dann((Antwort) => Antwort.text())35.dann((Ergebnis) => Konsole.log(Ergebnis))36.catch((Fehler) => Konsole.Fehler(Fehler));
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78Nutzlast = json.dumps({9„id“: 1,10„jsonrpc“: "2.0",11"method": "starknet_estimateMessageFee",12„params“: [13{14"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",15"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",16"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",17"payload": [18"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",19"0x2386f26fc10000",20„0x0“21]22},23„aktuell“24]25})26Kopfzeilen = {27„akzeptieren“: 'application/json',28'content-type': 'application/json'29}3031Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)3233Drucken(Antwort.text)34
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78Nutzlast = json.dumps({9„id“: 1,10„jsonrpc“: "2.0",11"method": "starknet_estimateMessageFee",12„params“: [13{14"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",15"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",16"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",17"payload": [18"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",19"0x2386f26fc10000",20„0x0“21]22},23„aktuell“24]25})26Kopfzeilen = {27„akzeptieren“: 'application/json',28'content-type': 'application/json'29}3031Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)3233Drucken(Antwort.text)34
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3require "uri"4require "json"5require „net/http“67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = Net::HTTP.new(url.host, URL.Port);10Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„akzeptieren“] = „application/json“12request["content-type"] = "application/json"13request.body = JSON.dump({14„id“: 1,15„jsonrpc“: "2.0",16"method": "starknet_estimateMessageFee",17„params“: [18{19"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",20"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",21"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",22"payload": [23"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",24"0x2386f26fc10000",25„0x0“26]27},28„aktuell“29]30})3132Antwort = http.Anfrage(Anfrage)33gibt die Antwort aus.read_body34
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3require "uri"4require "json"5require „net/http“67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = Net::HTTP.new(url.host, URL.Port);10Anfrage = Netto::HTTP::POST.new(URL)11Anfrage[„akzeptieren“] = „application/json“12request["content-type"] = "application/json"13request.body = JSON.dump({14„id“: 1,15„jsonrpc“: "2.0",16"method": "starknet_estimateMessageFee",17„params“: [18{19"from_address": "0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419",20"to_address": "0x73314940630fd6dcda0d772d4c972c4e0a9946bef9dabf4ef84eda8ef542b82",21"entry_point_selector": "0x2d757788a8d8d6f21d1cd40bce38a8222d70654214e96ff95d8086e684fbee5",22"payload": [23"0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",24"0x2386f26fc10000",25„0x0“26]27},28„aktuell“29]30})3132Antwort = http.Anfrage(Anfrage)33gibt die Antwort aus.read_body34
Hast du noch kein Konto?
Erstellen Sie Ihrenendpoint Sekundenschnelle und legen Sie los
Kostenlos loslegen