starknet_addDeployAccountTransaction RPC Method
パラメータ
deploy_account_transaction
オブジェクト
必須
読み込み中...
タイプ
文字列
必須
読み込み中...
バージョン
文字列
必須
読み込み中...
署名
文字列
必須
読み込み中...
nonce
文字列
必須
読み込み中...
contract_address_salt
文字列
必須
読み込み中...
constructor_calldata
配列
必須
読み込み中...
class_hash
文字列
必須
読み込み中...
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
文字列
必須
読み込み中...
tip
文字列
必須
読み込み中...
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_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_addDeployAccountTransaction",10"params": [11{12"type": "DEPLOY_ACCOUNT",13"version": "0x3",14"signature": [15"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",16"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"17],18"nonce": "0x0",19"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",20"constructor_calldata": [21"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"22],23"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",24"resource_bounds": {25"l1_gas": {26"max_amount": "0x0",27"max_price_per_unit": "0x38d7ea4c68000"28},29"l1_data_gas": {30"max_amount": "0x1388",31"max_price_per_unit": "0x9184e72a000"32},33"l2_gas": {34"max_amount": "0x7270e00",35"max_price_per_unit": "0x174876e800"36}37},38"tip": "0x0",39"paymaster_data": [],40"nonce_data_availability_mode": "L1",41"fee_data_availability_mode": "L1"42}43]44}'
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_addDeployAccountTransaction",10"params": [11{12"type": "DEPLOY_ACCOUNT",13"version": "0x3",14"signature": [15"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",16"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"17],18"nonce": "0x0",19"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",20"constructor_calldata": [21"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"22],23"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",24"resource_bounds": {25"l1_gas": {26"max_amount": "0x0",27"max_price_per_unit": "0x38d7ea4c68000"28},29"l1_data_gas": {30"max_amount": "0x1388",31"max_price_per_unit": "0x9184e72a000"32},33"l2_gas": {34"max_amount": "0x7270e00",35"max_price_per_unit": "0x174876e800"36}37},38"tip": "0x0",39"paymaster_data": [],40"nonce_data_availability_mode": "L1",41"fee_data_availability_mode": "L1"42}43]44}'
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_addDeployAccountTransaction",11"params": [12{13"type": "DEPLOY_ACCOUNT",14"version": "0x3",15"signature": [16"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",17"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"18],19"nonce": "0x0",20"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",21"constructor_calldata": [22"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"23],24"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",25"resource_bounds": {26"l1_gas": {27"max_amount": "0x0",28"max_price_per_unit": "0x38d7ea4c68000"29},30"l1_data_gas": {31"max_amount": "0x1388",32"max_price_per_unit": "0x9184e72a000"33},34"l2_gas": {35"max_amount": "0x7270e00",36"max_price_per_unit": "0x174876e800"37}38},39"tip": "0x0",40"paymaster_data": [],41"nonce_data_availability_mode": "L1",42"fee_data_availability_mode": "L1"43}44]45});4647const requestOptions = {48method: "POST",49ヘッダー: myHeaders,50本文: raw,51リダイレクト: "follow"52};5354fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)55.その後((レスポンス) => レスポンス.text())56.その後((結果) => コンソール.log(result))57.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_addDeployAccountTransaction",11"params": [12{13"type": "DEPLOY_ACCOUNT",14"version": "0x3",15"signature": [16"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",17"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"18],19"nonce": "0x0",20"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",21"constructor_calldata": [22"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"23],24"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",25"resource_bounds": {26"l1_gas": {27"max_amount": "0x0",28"max_price_per_unit": "0x38d7ea4c68000"29},30"l1_data_gas": {31"max_amount": "0x1388",32"max_price_per_unit": "0x9184e72a000"33},34"l2_gas": {35"max_amount": "0x7270e00",36"max_price_per_unit": "0x174876e800"37}38},39"tip": "0x0",40"paymaster_data": [],41"nonce_data_availability_mode": "L1",42"fee_data_availability_mode": "L1"43}44]45});4647const requestOptions = {48method: "POST",49ヘッダー: myHeaders,50本文: raw,51リダイレクト: "follow"52};5354fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)55.その後((レスポンス) => レスポンス.text())56.その後((結果) => コンソール.log(result))57.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 requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78ペイロード = json.dumps({9"id": 1,10「jsonrpc」: "2.0",11"method": "starknet_addDeployAccountTransaction",12"params": [13{14"type": "DEPLOY_ACCOUNT",15"version": "0x3",16"signature": [17"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",18"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"19],20"nonce": "0x0",21"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",22"constructor_calldata": [23"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"24],25"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",26"resource_bounds": {27"l1_gas": {28"max_amount": "0x0",29"max_price_per_unit": "0x38d7ea4c68000"30},31"l1_data_gas": {32"max_amount": "0x1388",33"max_price_per_unit": "0x9184e72a000"34},35"l2_gas": {36"max_amount": "0x7270e00",37"max_price_per_unit": "0x174876e800"38}39},40"tip": "0x0",41"paymaster_data": [],42"nonce_data_availability_mode": "L1",43"fee_data_availability_mode": "L1"44}45]46})47ヘッダー = {48「accept」: 'application/json',49「content-type」: 'application/json'50}5152回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)5354印刷(レスポンス.text)55
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"78ペイロード = json.dumps({9"id": 1,10「jsonrpc」: "2.0",11"method": "starknet_addDeployAccountTransaction",12"params": [13{14"type": "DEPLOY_ACCOUNT",15"version": "0x3",16"signature": [17"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",18"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"19],20"nonce": "0x0",21"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",22"constructor_calldata": [23"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"24],25"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",26"resource_bounds": {27"l1_gas": {28"max_amount": "0x0",29"max_price_per_unit": "0x38d7ea4c68000"30},31"l1_data_gas": {32"max_amount": "0x1388",33"max_price_per_unit": "0x9184e72a000"34},35"l2_gas": {36"max_amount": "0x7270e00",37"max_price_per_unit": "0x174876e800"38}39},40"tip": "0x0",41"paymaster_data": [],42"nonce_data_availability_mode": "L1",43"fee_data_availability_mode": "L1"44}45]46})47ヘッダー = {48「accept」: 'application/json',49「content-type」: 'application/json'50}5152回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)5354印刷(レスポンス.text)55
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);10リクエスト = ネット::HTTP::POST.new(URL)11request["accept"] = "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"type": "DEPLOY_ACCOUNT",20"version": "0x3",21"signature": [22"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",23"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"24],25"nonce": "0x0",26"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",27"constructor_calldata": [28"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"29],30"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",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"nonce_data_availability_mode": "L1",48"fee_data_availability_mode": "L1"49}50]51})5253回答 = http.リクエスト(リクエスト)54レスポンスを格納する.read_body55
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);10リクエスト = ネット::HTTP::POST.new(URL)11request["accept"] = "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"type": "DEPLOY_ACCOUNT",20"version": "0x3",21"signature": [22"0x7cfaae050d6db02b32ddbdb85989e10012504e74b680c9807386f9a1c8807c6",23"0x6e76b70ec1a32a3871516fc500c7478c02287783d075a0fdad6a659b4d2a8c4"24],25"nonce": "0x0",26"contract_address_salt": "0x4678eb497e96599c92b45f342c2bd284321fe219c60a9b6293d80f0fbfa61b5",27"constructor_calldata": [28"0x5aa23d5bb71ddaa783da7ea79d405315bafa7cf0387a74f4593578c3e9e6570"29],30"class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003",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"nonce_data_availability_mode": "L1",48"fee_data_availability_mode": "L1"49}50]51})5253回答 = http.リクエスト(リクエスト)54レスポンスを格納する.read_body55