starknet_addDeployAccountTransaction RPC Method
參數
deploy_account_transaction
物件
必填
載入中...
DEPLOY_ACCOUNT_TXN_V1
物件
載入中...
類型
字串
必填
載入中...
max_fee
字串
必填
載入中...
版本
字串
必填
載入中...
簽名
字串
必填
載入中...
非重複數
字串
必填
載入中...
contract_address_salt
字串
必填
載入中...
constructor_calldata
陣列
必填
載入中...
class_hash
字串
必填
載入中...
DEPLOY_ACCOUNT_TXN_V3
物件
載入中...
類型
字串
必填
載入中...
版本
字串
必填
載入中...
簽名
字串
必填
載入中...
非重複數
字串
必填
載入中...
contract_address_salt
字串
必填
載入中...
constructor_calldata
陣列
必填
載入中...
class_hash
字串
必填
載入中...
resource_bounds
物件
必填
載入中...
l1_gas
物件
必填
載入中...
max_amount
字串
必填
載入中...
max_price_per_unit
字串
必填
載入中...
l2_gas
物件
必填
載入中...
max_amount
字串
必填
載入中...
max_price_per_unit
字串
必填
載入中...
提示
字串
必填
載入中...
paymaster_data
陣列
必填
載入中...
nonce_data_availability_mode
字串
必填
載入中...
fee_data_availability_mode
字串
必填
載入中...
退貨
結果
物件
載入中...
transaction_hash
字串
載入中...
class_hash
字串
載入中...
請求
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--data '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_addDeployAccountTransaction",10"params": [11{12"max_fee": "MAX_FEE",13"version": "VERSION",14"signature": [15"SIGNATURE"16],17"nonce": "NONCE_VALUE",18"type": "DEPLOY_ACCOUNT",19"contract_address_salt": "CONTRACT_ADDRESS_SALT",20"constructor_calldata": [21"CALL_DATA"22],23"class_hash": "CLASS_HASH"24}25]26}'
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--data '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_addDeployAccountTransaction",10"params": [11{12"max_fee": "MAX_FEE",13"version": "VERSION",14"signature": [15"SIGNATURE"16],17"nonce": "NONCE_VALUE",18"type": "DEPLOY_ACCOUNT",19"contract_address_salt": "CONTRACT_ADDRESS_SALT",20"constructor_calldata": [21"CALL_DATA"22],23"class_hash": "CLASS_HASH"24}25]26}'
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63const myHeaders = new Headers();4myHeaders.追加("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9"jsonrpc": "2.0",10"method": "starknet_addDeployAccountTransaction",11"params": [12{13"max_fee": "MAX_FEE",14"version": "VERSION",15"signature": [16"SIGNATURE"17],18"nonce": "NONCE_VALUE",19"type": "DEPLOY_ACCOUNT",20"contract_address_salt": "CONTRACT_ADDRESS_SALT",21"constructor_calldata": [22"CALL_DATA"23],24"class_hash": "CLASS_HASH"25}26]27});2829const requestOptions = {30方法: 「POST」,31標題: myHeaders,32正文: 原始,33重定向: 「追蹤」34};3536fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8", requestOptions)37.接著((回應) => 回應.文字())38.接著((結果) => 控制台.log(結果))39.catch((錯誤) => 控制台.錯誤(錯誤));40
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63const myHeaders = new Headers();4myHeaders.追加("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9"jsonrpc": "2.0",10"method": "starknet_addDeployAccountTransaction",11"params": [12{13"max_fee": "MAX_FEE",14"version": "VERSION",15"signature": [16"SIGNATURE"17],18"nonce": "NONCE_VALUE",19"type": "DEPLOY_ACCOUNT",20"contract_address_salt": "CONTRACT_ADDRESS_SALT",21"constructor_calldata": [22"CALL_DATA"23],24"class_hash": "CLASS_HASH"25}26]27});2829const requestOptions = {30方法: 「POST」,31標題: myHeaders,32正文: 原始,33重定向: 「追蹤」34};3536fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8", requestOptions)37.接著((回應) => 回應.文字())38.接著((結果) => 控制台.log(結果))39.catch((錯誤) => 控制台.錯誤(錯誤));40
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8"78有效載荷 = json.dumps({9"id": 1,10"jsonrpc": "2.0",11"method": "starknet_addDeployAccountTransaction",12"params": [13{14"max_fee": "MAX_FEE",15"version": "VERSION",16"signature": [17"SIGNATURE"18],19"nonce": "NONCE_VALUE",20"type": "DEPLOY_ACCOUNT",21"contract_address_salt": "CONTRACT_ADDRESS_SALT",22"constructor_calldata": [23"CALL_DATA"24],25"class_hash": "CLASS_HASH"26}27]28})29標題 = {30「接受」: 'application/json',31'content-type': 'application/json'32}3334回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)3536列印(回應.text)37
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8"78有效載荷 = json.dumps({9"id": 1,10"jsonrpc": "2.0",11"method": "starknet_addDeployAccountTransaction",12"params": [13{14"max_fee": "MAX_FEE",15"version": "VERSION",16"signature": [17"SIGNATURE"18],19"nonce": "NONCE_VALUE",20"type": "DEPLOY_ACCOUNT",21"contract_address_salt": "CONTRACT_ADDRESS_SALT",22"constructor_calldata": [23"CALL_DATA"24],25"class_hash": "CLASS_HASH"26}27]28})29標題 = {30「接受」: 'application/json',31'content-type': 'application/json'32}3334回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)3536列印(回應.text)37
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63require "uri"4require "json"5需要 "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8")89http = Net::HTTP.new(url.host, url.port);10請求 = 淨::HTTP::POST.new(網址)11請求["接受"] = "application/json"12request["content-type"] = "application/json"13請求。正文 = JSON.dump({14"id": 1,15"jsonrpc": "2.0",16"method": "starknet_addDeployAccountTransaction",17"params": [18{19"max_fee": "MAX_FEE",20"version": "VERSION",21"signature": [22"SIGNATURE"23],24"nonce": "NONCE_VALUE",25"type": "DEPLOY_ACCOUNT",26"contract_address_salt": "CONTRACT_ADDRESS_SALT",27"constructor_calldata": [28"CALL_DATA"29],30"class_hash": "CLASS_HASH"31}32]33})3435回應 = http.請求(請求)36將回應。read_body37
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_8 for version 0.8, /rpc/v0_6 for version 0.63require "uri"4require "json"5需要 "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_8")89http = Net::HTTP.new(url.host, url.port);10請求 = 淨::HTTP::POST.new(網址)11請求["接受"] = "application/json"12request["content-type"] = "application/json"13請求。正文 = JSON.dump({14"id": 1,15"jsonrpc": "2.0",16"method": "starknet_addDeployAccountTransaction",17"params": [18{19"max_fee": "MAX_FEE",20"version": "VERSION",21"signature": [22"SIGNATURE"23],24"nonce": "NONCE_VALUE",25"type": "DEPLOY_ACCOUNT",26"contract_address_salt": "CONTRACT_ADDRESS_SALT",27"constructor_calldata": [28"CALL_DATA"29],30"class_hash": "CLASS_HASH"31}32]33})3435回應 = http.請求(請求)36將回應。read_body37