/v1/submit_transactions REST API Endpoint
You can read
여기
on how to generate and submit transactions to the Aptos blockchain, and verify these submitted transactions.
신체 측정값
sender
문자열
필수
로딩 중...
sequence_number
문자열
필수
로딩 중...
max_gas_amount
문자열
필수
로딩 중...
gas_unit_price
문자열
필수
로딩 중...
expiration_timestamp_secs
문자열
필수
로딩 중...
payload
객체
필수
로딩 중...
유형
문자열
로딩 중...
function
문자열
로딩 중...
type_arguments
배열
로딩 중...
arguments
배열
로딩 중...
서명
객체
필수
로딩 중...
유형
문자열
로딩 중...
공개 키
문자열
로딩 중...
서명
문자열
로딩 중...
반품
해시
로딩 중...
sender
로딩 중...
sequence_number
로딩 중...
max_gas_amount
로딩 중...
gas_unit_price
로딩 중...
expiration_timestamp_secs
로딩 중...
payload
로딩 중...
유형
로딩 중...
function
로딩 중...
type_arguments
로딩 중...
arguments
로딩 중...
서명
로딩 중...
유형
로딩 중...
공개 키
로딩 중...
서명
로딩 중...
요청
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions \3--header 'Accept: application/json, application/x-bcs' \4--header 'Content-Type: application/json' \5--데이터 '{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_NAME",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 \3--header 'Accept: application/json, application/x-bcs' \4--header 'Content-Type: application/json' \5--데이터 '{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_NAME",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}'
1const url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions';2const 헤더 = {3'Accept': 'application/json, application/x-bcs',4'Content-Type': 'application/json'5};67const data = {8"sender": "SENDER_ADDRESS",9"sequence_number": "SEQUENCE_NUMBER",10"max_gas_amount": "MAX_GAS_AMOUNT",11"gas_unit_price": "GAS_UNIT_PRICE",12"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",13"payload": {14"type": "PAYLOAD_TYPE",15"function": "FUNCTION_NAME",16"type_arguments": ["string"],17"arguments": [null]18},19"signature": {20"type": "SIGNATURE_TYPE",21"public_key": "PUBLIC_KEY",22"signature": "SIGNATURE"23}24};2526가져오기fetch (url, {27메서드: 'POST',28헤더: 헤더,29본문: JSON.stringify(data)30})31.then(response => response.json())32.then(data => console.log(data))33.catch((error) => console.error('Error:', error));34
1const url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions';2const 헤더 = {3'Accept': 'application/json, application/x-bcs',4'Content-Type': 'application/json'5};67const data = {8"sender": "SENDER_ADDRESS",9"sequence_number": "SEQUENCE_NUMBER",10"max_gas_amount": "MAX_GAS_AMOUNT",11"gas_unit_price": "GAS_UNIT_PRICE",12"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",13"payload": {14"type": "PAYLOAD_TYPE",15"function": "FUNCTION_NAME",16"type_arguments": ["string"],17"arguments": [null]18},19"signature": {20"type": "SIGNATURE_TYPE",21"public_key": "PUBLIC_KEY",22"signature": "SIGNATURE"23}24};2526가져오기fetch (url, {27메서드: 'POST',28헤더: 헤더,29본문: JSON.stringify(data)30})31.then(response => response.json())32.then(data => console.log(data))33.catch((error) => console.error('Error:', error));34
1import 요청2import json34url = "https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions"5헤더 = {6'Accept': 'application/json, application/x-bcs',7'Content-Type': 'application/json'8}910데이터 = {11"sender": "SENDER_ADDRESS",12"sequence_number": "SEQUENCE_NUMBER",13"max_gas_amount": "MAX_GAS_AMOUNT",14"gas_unit_price": "GAS_UNIT_PRICE",15"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",16"payload": {17"type": "PAYLOAD_TYPE",18"function": "FUNCTION_NAME",19"type_arguments": ["string"],20"arguments": [None]21},22"signature": {23"type": "SIGNATURE_TYPE",24"public_key": "PUBLIC_KEY",25"signature": "SIGNATURE"26}27}2829response = requests.post(url, headers=headers, data=json.dumps(data))30
1import 요청2import json34url = "https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions"5헤더 = {6'Accept': 'application/json, application/x-bcs',7'Content-Type': 'application/json'8}910데이터 = {11"sender": "SENDER_ADDRESS",12"sequence_number": "SEQUENCE_NUMBER",13"max_gas_amount": "MAX_GAS_AMOUNT",14"gas_unit_price": "GAS_UNIT_PRICE",15"expiration_timestamp_secs": "EXPIRATION_TIMESTAMP_SECS",16"payload": {17"type": "PAYLOAD_TYPE",18"function": "FUNCTION_NAME",19"type_arguments": ["string"],20"arguments": [None]21},22"signature": {23"type": "SIGNATURE_TYPE",24"public_key": "PUBLIC_KEY",25"signature": "SIGNATURE"26}27}2829response = requests.post(url, headers=headers, data=json.dumps(data))30
1require 'net/http'2필수 'uri'3require 'json'45uri = URI.parse("https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions")6header = {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_NAME",20"type_arguments" => ["string"],21"arguments" => [nil]22},23"signature" => {24"type" => "SIGNATURE_TYPE",25"public_key" => "PUBLIC_KEY",26"signature" => "SIGNATURE"27}28}2930http = Net::HTTP.new(uri.host, uri.port)31http.use_ssl = true32request = Net::HTTP::Post.new(uri.request_uri, header)33요청.본문 = data.to_json34답변 = http.요청(요청)35
1require 'net/http'2필수 'uri'3require 'json'45uri = URI.parse("https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions")6header = {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_NAME",20"type_arguments" => ["string"],21"arguments" => [nil]22},23"signature" => {24"type" => "SIGNATURE_TYPE",25"public_key" => "PUBLIC_KEY",26"signature" => "SIGNATURE"27}28}2930http = Net::HTTP.new(uri.host, uri.port)31http.use_ssl = true32request = Net::HTTP::Post.new(uri.request_uri, header)33요청.본문 = data.to_json34답변 = http.요청(요청)35