/v1/transactions/encode_submission REST API Endpoint
Parâmetros de consulta
sender
cadeia de caracteres
OBRIGATÓRIO
A carregar...
sequence_number
cadeia de caracteres
OBRIGATÓRIO
A carregar...
max_gas_amount
cadeia de caracteres
OBRIGATÓRIO
A carregar...
gas_unit_price
cadeia de caracteres
OBRIGATÓRIO
A carregar...
expiration_timestamp_secs
cadeia de caracteres
OBRIGATÓRIO
A carregar...
payload
objeto
OBRIGATÓRIO
A carregar...
tipo
cadeia de caracteres
A carregar...
function
cadeia de caracteres
A carregar...
type_arguments
matriz
A carregar...
arguments
matriz
A carregar...
assinatura
objeto
OBRIGATÓRIO
A carregar...
tipo
cadeia de caracteres
A carregar...
chave_pública
cadeia de caracteres
A carregar...
assinatura
cadeia de caracteres
A carregar...
Devoluções
resultado
A carregar...
Pedido
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission \3--header 'Accept: application/json, application/x-bcs' \4--cabeçalho 'Content-Type: application/json' \5--dados '{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"secondary_signers": [22"SECONDARY_SIGNER_ADDRESS"23]24}'
1curl --request POST \2--url https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission \3--header 'Accept: application/json, application/x-bcs' \4--cabeçalho 'Content-Type: application/json' \5--dados '{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"secondary_signers": [22"SECONDARY_SIGNER_ADDRESS"23]24}'
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.acrescentar("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"secondary_signers": [22"SECONDARY_SIGNER_ADDRESS"23]24});2526var requestOptions = {27método: 'POST',28cabeçalhos: myHeaders,29corpo: raw,30redirecionar: 'seguir'31};3233fetch("https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission", requestOptions)34.então(resposta => resposta.texto())35.então(resultado => console.log(resultado))36.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Accept", "application/json, application/x-bcs");3myHeaders.acrescentar("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"secondary_signers": [22"SECONDARY_SIGNER_ADDRESS"23]24});2526var requestOptions = {27método: 'POST',28cabeçalhos: myHeaders,29corpo: raw,30redirecionar: 'seguir'31};3233fetch("https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission", requestOptions)34.então(resposta => resposta.texto())35.então(resultado => console.log(resultado))36.catch(error => console.log('error', error));
1importar pedidos2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission'56cabeçalhos = {7'Accept': 'application/json, application/x-bcs',8'Content-Type': 'application/json'9}1011dados = {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": [24Nenhum25]26},27"secondary_signers": [28"SECONDARY_SIGNER_ADDRESS"29]30}3132response = requests.post(url, headers=headers, json=data)33print(response.json())34
1importar pedidos2import json34url = 'https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission'56cabeçalhos = {7'Accept': 'application/json, application/x-bcs',8'Content-Type': 'application/json'9}1011dados = {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": [24Nenhum25]26},27"secondary_signers": [28"SECONDARY_SIGNER_ADDRESS"29]30}3132response = requests.post(url, headers=headers, json=data)33print(response.json())34
1exigir 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78cabeçalhos = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213dados = {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"secondary_signers" => [30"SECONDARY_SIGNER_ADDRESS"31]32}3334request = Net::HTTP::Post.new(url.path, headers)35pedido.corpo = dados.to_json3637resposta = http.pedido(pedido)38insere a resposta.corpo39
1exigir 'net/http'2require 'json'34url = URI.parse('https://docs-demo.aptos-mainnet.quiknode.pro/v1/transactions/encode_submission')5http = Net::HTTP.new(url.host, url.port)6http.use_ssl = true78cabeçalhos = {9'Accept' => 'application/json, application/x-bcs',10'Content-Type' => 'application/json'11}1213dados = {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"secondary_signers" => [30"SECONDARY_SIGNER_ADDRESS"31]32}3334request = Net::HTTP::Post.new(url.path, headers)35pedido.corpo = dados.to_json3637resposta = http.pedido(pedido)38insere a resposta.corpo39
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente