/v1/transactions/simulate REST API Endpoint
クエリパラメータ
estimate_gas_unit_price
ブール値
読み込み中...
estimate_max_gas_amount
ブール値
読み込み中...
estimate_prioritized_gas_unit_price
ブール値
読み込み中...
送信者
文字列
必須
読み込み中...
sequence_number
文字列
必須
読み込み中...
max_gas_amount
文字列
必須
読み込み中...
gas_unit_price
文字列
必須
読み込み中...
expiration_timestamp_secs
文字列
必須
読み込み中...
payload
オブジェクト
必須
読み込み中...
タイプ
文字列
読み込み中...
関数
文字列
読み込み中...
type_arguments
配列
読み込み中...
arguments
配列
読み込み中...
署名
オブジェクト
必須
読み込み中...
タイプ
文字列
読み込み中...
公開鍵
文字列
読み込み中...
署名
文字列
読み込み中...
返品
バージョン
読み込み中...
ハッシュ
読み込み中...
state_change_hash
読み込み中...
event_root_hash
読み込み中...
state_checkpoint_hash
読み込み中...
gas_used
読み込み中...
success
読み込み中...
vm_status
読み込み中...
accumulator_root_hash
読み込み中...
changes
読み込み中...
タイプ
読み込み中...
住所
読み込み中...
state_key_hash
読み込み中...
module
読み込み中...
送信者
読み込み中...
sequence_number
読み込み中...
max_gas_amount
読み込み中...
gas_unit_price
読み込み中...
expiration_timestamp_secs
読み込み中...
payload
読み込み中...
タイプ
読み込み中...
関数
読み込み中...
type_arguments
読み込み中...
arguments
読み込み中...
署名
読み込み中...
タイプ
読み込み中...
公開鍵
読み込み中...
署名
読み込み中...
イベント
読み込み中...
guid
読み込み中...
creation_number
読み込み中...
account_address
読み込み中...
sequence_number
読み込み中...
タイプ
読み込み中...
データ
読み込み中...
タイムスタンプ
読み込み中...
リクエスト
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate \3--header 'Accept: application/json, application/x-bcs' \4--ヘッダー 'Content-Type: application/json' \5--data '{6"sender": "SENDER_ADDRESS",7"sequence_number": "SEQUENCE_NUMBER",8"max_gas_amount": "MAX_GAS_AMOUNT",9"gas_unit_price": "GAS_UNIT_PRICE",10"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",11"payload": {12"type": "PAYLOAD_TYPE",13"function": "FUNCTION",14"type_arguments": [15"string"16],17"arguments": [18null19]20},21"signature": {22"type": "SIGNATURE_TYPE",23"public_key": "PUBLIC_KEY",24"signature": "SIGNATURE"25}26}'
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate \3--header 'Accept: application/json, application/x-bcs' \4--ヘッダー 'Content-Type: application/json' \5--data '{6"sender": "SENDER_ADDRESS",7"sequence_number": "SEQUENCE_NUMBER",8"max_gas_amount": "MAX_GAS_AMOUNT",9"gas_unit_price": "GAS_UNIT_PRICE",10"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",11"payload": {12"type": "PAYLOAD_TYPE",13"function": "FUNCTION",14"type_arguments": [15"string"16],17"arguments": [18null19]20},21"signature": {22"type": "SIGNATURE_TYPE",23"public_key": "PUBLIC_KEY",24"signature": "SIGNATURE"25}26}'
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.append("Content-Type", "application/json");45var raw = JSON.stringify({6"sender": "SENDER_ADDRESS",7"sequence_number": "SEQUENCE_NUMBER",8"max_gas_amount": "MAX_GAS_AMOUNT",9"gas_unit_price": "GAS_UNIT_PRICE",10"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",11"payload": {12"type": "PAYLOAD_TYPE",13"function": "FUNCTION",14"type_arguments": [15"string"16],17"arguments": [18null19]20},21"signature": {22"type": "SIGNATURE_TYPE",23"public_key": "PUBLIC_KEY",24"signature": "SIGNATURE"25}26});2728var requestOptions = {29メソッド: 'POST',30ヘッダー: myHeaders,31本文: raw,32リダイレクト: 'follow'33};3435fetch("https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate", requestOptions)36.その後(レスポンス => レスポンス.text())37.その後(結果 => コンソール.log(result))38.catchcatch(エラー => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.append("Content-Type", "application/json");45var raw = JSON.stringify({6"sender": "SENDER_ADDRESS",7"sequence_number": "SEQUENCE_NUMBER",8"max_gas_amount": "MAX_GAS_AMOUNT",9"gas_unit_price": "GAS_UNIT_PRICE",10"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",11"payload": {12"type": "PAYLOAD_TYPE",13"function": "FUNCTION",14"type_arguments": [15"string"16],17"arguments": [18null19]20},21"signature": {22"type": "SIGNATURE_TYPE",23"public_key": "PUBLIC_KEY",24"signature": "SIGNATURE"25}26});2728var requestOptions = {29メソッド: 'POST',30ヘッダー: myHeaders,31本文: raw,32リダイレクト: 'follow'33};3435fetch("https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate", requestOptions)36.その後(レスポンス => レスポンス.text())37.その後(結果 => コンソール.log(result))38.catchcatch(エラー => console.log('error', error));
1import リクエスト2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate'56ヘッダー = {7'Accept': 'application/json, application/x-bcs',8「Content-Type」: 'application/json'9}1011データ = {12"sender": "SENDER_ADDRESS",13"sequence_number": "SEQUENCE_NUMBER",14"max_gas_amount": "MAX_GAS_AMOUNT",15"gas_unit_price": "GAS_UNIT_PRICE",16"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",17"payload": {18"type": "PAYLOAD_TYPE",19"function": "FUNCTION",20"type_arguments": [21"string"22],23"arguments": [24なし25]26},27"signature": {28"type": "SIGNATURE_TYPE",29"public_key": "PUBLIC_KEY",30"signature": "SIGNATURE"31}32}3334response = requests.post(url, headers=headers, json=data)35印刷(レスポンス.json())36
1import リクエスト2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate'56ヘッダー = {7'Accept': 'application/json, application/x-bcs',8「Content-Type」: 'application/json'9}1011データ = {12"sender": "SENDER_ADDRESS",13"sequence_number": "SEQUENCE_NUMBER",14"max_gas_amount": "MAX_GAS_AMOUNT",15"gas_unit_price": "GAS_UNIT_PRICE",16"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",17"payload": {18"type": "PAYLOAD_TYPE",19"function": "FUNCTION",20"type_arguments": [21"string"22],23"arguments": [24なし25]26},27"signature": {28"type": "SIGNATURE_TYPE",29"public_key": "PUBLIC_KEY",30"signature": "SIGNATURE"31}32}3334response = requests.post(url, headers=headers, json=data)35印刷(レスポンス.json())36
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate')5http = ネット::HTTP.new(url.ホスト, url.ポート)6http.use_ssl = true78ヘッダー = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213データ = {14"sender" => "SENDER_ADDRESS",15"sequence_number" => "SEQUENCE_NUMBER",16"max_gas_amount" => "MAX_GAS_AMOUNT",17"gas_unit_price" => "GAS_UNIT_PRICE",18"expiration_timestamp_secs" => "EXPIRATION_TIMESTAMP_SECS",19"payload" => {20"type" => "PAYLOAD_TYPE",21"function" => "FUNCTION",22"type_arguments" => [23"string"24],25"arguments" => [26nil27]28},29"signature" => {30"type" => "SIGNATURE_TYPE",31"public_key" => "PUBLIC_KEY",32"signature" => "SIGNATURE"33}34}3536request = Net::HTTP::Post.new(url.path, headers)37リクエスト.本文 = data.to_json3839回答 = http.リクエスト(リクエスト)40レスポンスを格納する。body41
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate')5http = ネット::HTTP.new(url.ホスト, url.ポート)6http.use_ssl = true78ヘッダー = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213データ = {14"sender" => "SENDER_ADDRESS",15"sequence_number" => "SEQUENCE_NUMBER",16"max_gas_amount" => "MAX_GAS_AMOUNT",17"gas_unit_price" => "GAS_UNIT_PRICE",18"expiration_timestamp_secs" => "EXPIRATION_TIMESTAMP_SECS",19"payload" => {20"type" => "PAYLOAD_TYPE",21"function" => "FUNCTION",22"type_arguments" => [23"string"24],25"arguments" => [26nil27]28},29"signature" => {30"type" => "SIGNATURE_TYPE",31"public_key" => "PUBLIC_KEY",32"signature" => "SIGNATURE"33}34}3536request = Net::HTTP::Post.new(url.path, headers)37リクエスト.本文 = data.to_json3839回答 = http.リクエスト(リクエスト)40レスポンスを格納する。body41