/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
로딩 중...
모듈
로딩 중...
발신자
로딩 중...
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.추가("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.그런 다음(응답 => response.text())37.그런 다음(결과 => console.log(result))38.catch(오류 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.추가("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.그런 다음(응답 => response.text())37.그런 다음(결과 => console.log(result))38.catch(오류 => 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)35print(response.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)35print(response.json())36
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate')5http = Net::HTTP.new(url.host, url.port)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응답을 넣습니다.본문41
1require 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/simulate')5http = Net::HTTP.new(url.host, url.port)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응답을 넣습니다.본문41