starknet_addInvokeTransaction RPC Method
參數
invoke_transaction
物件
必填
載入中...
類型
字串
必填
載入中...
寄件者地址
字串
必填
載入中...
calldata
陣列
必填
載入中...
版本
字串
必填
載入中...
簽名
字串
必填
載入中...
非重複數
字串
必填
載入中...
resource_bounds
物件
必填
載入中...
l1_gas
物件
必填
載入中...
max_amount
字串
必填
載入中...
max_price_per_unit
字串
必填
載入中...
l1_data_gas
物件
必填
載入中...
max_amount
字串
必填
載入中...
max_price_per_unit
字串
必填
載入中...
l2_gas
物件
必填
載入中...
max_amount
字串
必填
載入中...
max_price_per_unit
字串
必填
載入中...
提示
字串
必填
載入中...
paymaster_data
陣列
必填
載入中...
account_deployment_data
陣列
必填
載入中...
nonce_data_availability_mode
字串
必填
載入中...
fee_data_availability_mode
字串
必填
載入中...
退貨
結果
物件
載入中...
transaction_hash
字串
載入中...
請求
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_addInvokeTransaction",10"params": [11{12"type": "INVOKE",13"version": "0x3",14"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",15"calldata": [16"0x1",17"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",18"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",19"0x3",20"0x123",21"0x1",22"0x0"23],24"signature": [25"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",26"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"27],28"nonce": "0x1",29"resource_bounds": {30"l1_gas": {31"max_amount": "0x0",32"max_price_per_unit": "0x38d7ea4c68000"33},34"l1_data_gas": {35"max_amount": "0x1388",36"max_price_per_unit": "0x9184e72a000"37},38"l2_gas": {39"max_amount": "0x7270e00",40"max_price_per_unit": "0x174876e800"41}42},43"tip": "0x0",44"paymaster_data": [],45"account_deployment_data": [],46"nonce_data_availability_mode": "L1",47"fee_data_availability_mode": "L1"48}49]50}'
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_addInvokeTransaction",10"params": [11{12"type": "INVOKE",13"version": "0x3",14"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",15"calldata": [16"0x1",17"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",18"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",19"0x3",20"0x123",21"0x1",22"0x0"23],24"signature": [25"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",26"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"27],28"nonce": "0x1",29"resource_bounds": {30"l1_gas": {31"max_amount": "0x0",32"max_price_per_unit": "0x38d7ea4c68000"33},34"l1_data_gas": {35"max_amount": "0x1388",36"max_price_per_unit": "0x9184e72a000"37},38"l2_gas": {39"max_amount": "0x7270e00",40"max_price_per_unit": "0x174876e800"41}42},43"tip": "0x0",44"paymaster_data": [],45"account_deployment_data": [],46"nonce_data_availability_mode": "L1",47"fee_data_availability_mode": "L1"48}49]50}'
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.append("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9"jsonrpc": "2.0",10"method": "starknet_addInvokeTransaction",11"params": [12{13"type": "INVOKE",14"version": "0x3",15"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",16"calldata": [17"0x1",18"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",19"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",20"0x3",21"0x123",22"0x1",23"0x0"24],25"signature": [26"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",27"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"28],29"nonce": "0x1",30"resource_bounds": {31"l1_gas": {32"max_amount": "0x0",33"max_price_per_unit": "0x38d7ea4c68000"34},35"l1_data_gas": {36"max_amount": "0x1388",37"max_price_per_unit": "0x9184e72a000"38},39"l2_gas": {40"max_amount": "0x7270e00",41"max_price_per_unit": "0x174876e800"42}43},44"tip": "0x0",45"paymaster_data": [],46"account_deployment_data": [],47"nonce_data_availability_mode": "L1",48"fee_data_availability_mode": "L1"49}50]51});5253const requestOptions = {54method: "POST",55標題: myHeaders,56正文: 原始,57重定向: 「追蹤」58};5960fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)61.接著((回應) => 回應.文字())62.接著((結果) => 控制台.log(結果))63.catch((錯誤) => 控制台.錯誤(錯誤));
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.append("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9"jsonrpc": "2.0",10"method": "starknet_addInvokeTransaction",11"params": [12{13"type": "INVOKE",14"version": "0x3",15"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",16"calldata": [17"0x1",18"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",19"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",20"0x3",21"0x123",22"0x1",23"0x0"24],25"signature": [26"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",27"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"28],29"nonce": "0x1",30"resource_bounds": {31"l1_gas": {32"max_amount": "0x0",33"max_price_per_unit": "0x38d7ea4c68000"34},35"l1_data_gas": {36"max_amount": "0x1388",37"max_price_per_unit": "0x9184e72a000"38},39"l2_gas": {40"max_amount": "0x7270e00",41"max_price_per_unit": "0x174876e800"42}43},44"tip": "0x0",45"paymaster_data": [],46"account_deployment_data": [],47"nonce_data_availability_mode": "L1",48"fee_data_availability_mode": "L1"49}50]51});5253const requestOptions = {54method: "POST",55標題: myHeaders,56正文: 原始,57重定向: 「追蹤」58};5960fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)61.接著((回應) => 回應.文字())62.接著((結果) => 控制台.log(結果))63.catch((錯誤) => 控制台.錯誤(錯誤));
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 requests4匯入 json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78有效載荷 = json.dumps({9"id": 1,10"jsonrpc": "2.0",11"method": "starknet_addInvokeTransaction",12"params": [13{14"type": "INVOKE",15"version": "0x3",16"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",17"calldata": [18"0x1",19"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",20"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",21"0x3",22"0x123",23"0x1",24"0x0"25],26"signature": [27"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",28"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"29],30"nonce": "0x1",31"resource_bounds": {32"l1_gas": {33"max_amount": "0x0",34"max_price_per_unit": "0x38d7ea4c68000"35},36"l1_data_gas": {37"max_amount": "0x1388",38"max_price_per_unit": "0x9184e72a000"39},40"l2_gas": {41"max_amount": "0x7270e00",42"max_price_per_unit": "0x174876e800"43}44},45"tip": "0x0",46"paymaster_data": [],47"account_deployment_data": [],48"nonce_data_availability_mode": "L1",49"fee_data_availability_mode": "L1"50}51]52})53標題 = {54'accept': 'application/json',55'content-type': 'application/json'56}5758回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)5960列印(回應.text)61
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 requests4匯入 json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78有效載荷 = json.dumps({9"id": 1,10"jsonrpc": "2.0",11"method": "starknet_addInvokeTransaction",12"params": [13{14"type": "INVOKE",15"version": "0x3",16"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",17"calldata": [18"0x1",19"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",20"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",21"0x3",22"0x123",23"0x1",24"0x0"25],26"signature": [27"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",28"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"29],30"nonce": "0x1",31"resource_bounds": {32"l1_gas": {33"max_amount": "0x0",34"max_price_per_unit": "0x38d7ea4c68000"35},36"l1_data_gas": {37"max_amount": "0x1388",38"max_price_per_unit": "0x9184e72a000"39},40"l2_gas": {41"max_amount": "0x7270e00",42"max_price_per_unit": "0x174876e800"43}44},45"tip": "0x0",46"paymaster_data": [],47"account_deployment_data": [],48"nonce_data_availability_mode": "L1",49"fee_data_availability_mode": "L1"50}51]52})53標題 = {54'accept': 'application/json',55'content-type': 'application/json'56}5758回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)5960列印(回應.text)61
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"5需要 "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = 網::HTTP.new(url.主機, 網址.port);10請求 = 淨額::HTTP::POST.新增(網址)11request["accept"] = "application/json"12request["content-type"] = "application/json"13請求。主體 = JSON.dump({14"id": 1,15"jsonrpc": "2.0",16"method": "starknet_addInvokeTransaction",17"params": [18{19"type": "INVOKE",20"version": "0x3",21"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",22"calldata": [23"0x1",24"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",25"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",26"0x3",27"0x123",28"0x1",29"0x0"30],31"signature": [32"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",33"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"34],35"nonce": "0x1",36"resource_bounds": {37"l1_gas": {38"max_amount": "0x0",39"max_price_per_unit": "0x38d7ea4c68000"40},41"l1_data_gas": {42"max_amount": "0x1388",43"max_price_per_unit": "0x9184e72a000"44},45"l2_gas": {46"max_amount": "0x7270e00",47"max_price_per_unit": "0x174876e800"48}49},50"tip": "0x0",51"paymaster_data": [],52"account_deployment_data": [],53"nonce_data_availability_mode": "L1",54"fee_data_availability_mode": "L1"55}56]57})5859回應 = http.請求(請求)60puts 回應。read_body61
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"5需要 "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = 網::HTTP.new(url.主機, 網址.port);10請求 = 淨額::HTTP::POST.新增(網址)11request["accept"] = "application/json"12request["content-type"] = "application/json"13請求。主體 = JSON.dump({14"id": 1,15"jsonrpc": "2.0",16"method": "starknet_addInvokeTransaction",17"params": [18{19"type": "INVOKE",20"version": "0x3",21"sender_address": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",22"calldata": [23"0x1",24"0x4718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d",25"0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e",26"0x3",27"0x123",28"0x1",29"0x0"30],31"signature": [32"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",33"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"34],35"nonce": "0x1",36"resource_bounds": {37"l1_gas": {38"max_amount": "0x0",39"max_price_per_unit": "0x38d7ea4c68000"40},41"l1_data_gas": {42"max_amount": "0x1388",43"max_price_per_unit": "0x9184e72a000"44},45"l2_gas": {46"max_amount": "0x7270e00",47"max_price_per_unit": "0x174876e800"48}49},50"tip": "0x0",51"paymaster_data": [],52"account_deployment_data": [],53"nonce_data_availability_mode": "L1",54"fee_data_availability_mode": "L1"55}56]57})5859回應 = http.請求(請求)60puts 回應。read_body61