Skip to main content
Version: 2.2

Encode submission

POSThttps://mainnet-aptos-api.moralis.io/transactions/encode_submission

Encode a submission.

BODY PARAM
senderstring
A hex encoded 32 byte Aptos account address.
sequence_numberstring
A string containing a 64-bit unsigned integer.
max_gas_amountstring
A string containing a 64-bit unsigned integer.
gas_unit_pricestring
A string containing a 64-bit unsigned integer.
expiration_timestamp_secsstring
A string containing a 64-bit unsigned integer returned in milliseconds.
payloadjson
An enum of the possible transaction payloads
secondary_signersarray
Secondary signer accounts of the request for Multi-agent
No items in the array
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.AptosApi.transactions.encodeSubmission({
"network": "mainnet"
});

console.log(response);
} catch (e) {
console.error(e);
}
Response Example
Empty