Submit transaction
Changed onThis endpoint accepts transaction submissions in two formats.
To submit a transaction as JSON, you must submit a SubmitTransactionRequest. To build this request, do the following:
- Encode the transaction as BCS. If you are using a language that has native BCS support, make sure of that library. If not, you may take advantage of /transactions/encode_submission. When using this endpoint, make sure you trust the node you're talking to, as it is possible they could manipulate your request.
- Sign the encoded transaction and use it to create a TransactionSignature.
- Submit the request. Make sure to use the "application/json" Content-Type.
To submit a transaction as BCS, you must submit a SignedTransaction encoded as BCS. See SignedTransaction in types/src/transaction/mod.rs. Make sure to use the application/x.lumio.signed_transaction+bcs Content-Type.
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/transactions
- Authnone declared
Request body
Response
Changes
- breaking
removed the media type
application/x.aptos.signed_transaction+bcsfrom the request body - breaking
the mandatory response header
X-APTOS-BLOCK-HEIGHTremoved for the status202 - breaking
the mandatory response header
X-APTOS-CHAIN-IDremoved for the status202 - breaking
the mandatory response header
X-APTOS-EPOCHremoved for the status202 - breaking
the mandatory response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status202 - breaking
the mandatory response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status202 - breaking
the mandatory response header
X-APTOS-LEDGER-VERSIONremoved for the status202 - breaking
the mandatory response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status202 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status400 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status403 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status404 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status413 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status500 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status503 - warning
the optional response header
X-APTOS-BLOCK-HEIGHTremoved for the status507 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status400 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status403 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status404 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status413 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status500 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status503 - warning
the optional response header
X-APTOS-CHAIN-IDremoved for the status507 - warning
the optional response header
X-APTOS-CURSORremoved for the status202 - warning
the optional response header
X-APTOS-EPOCHremoved for the status400 - warning
the optional response header
X-APTOS-EPOCHremoved for the status403 - warning
the optional response header
X-APTOS-EPOCHremoved for the status404 - warning
the optional response header
X-APTOS-EPOCHremoved for the status413 - warning
the optional response header
X-APTOS-EPOCHremoved for the status500 - warning
the optional response header
X-APTOS-EPOCHremoved for the status503 - warning
the optional response header
X-APTOS-EPOCHremoved for the status507 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status202 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status400 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status403 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status404 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status413 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status500 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status503 - warning
the optional response header
X-APTOS-GAS-USEDremoved for the status507 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status400 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status403 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status404 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status413 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status500 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status503 - warning
the optional response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status507 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status400 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status403 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status404 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status413 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status500 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status503 - warning
the optional response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status507 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status400 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status403 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status404 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status413 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status500 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status503 - warning
the optional response header
X-APTOS-LEDGER-VERSIONremoved for the status507 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status400 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status403 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status404 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status413 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status500 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status503 - warning
the optional response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status507 - info
added the media type
application/x.lumio.signed_transaction+bcsto the request body
- breaking
- breaking
removed from the
////////request propertyoneOflist - breaking
removed from the
/////////////request propertyoneOflist - breaking
removed from the
//////////request propertyoneOflist - breaking
removed from the
/////////request propertyoneOflist - breaking
removed from the
//////////request propertyoneOflist - breaking
removed from the
/////////request propertyoneOflist - breaking
added to the
////////response propertyoneOflist for the response status - breaking
added to the
/////////////response propertyoneOflist for the response status - breaking
added to the
//////////response propertyoneOflist for the response status - breaking
added to the
/////////response propertyoneOflist for the response status - breaking
added to the
//////////response propertyoneOflist for the response status - breaking
added to the
/////////response propertyoneOflist for the response status - info
added
abstract_signaturediscriminator mapping keys to the////////request property - info
added
abstract_signaturediscriminator mapping keys to the/////////////request property - info
added
abstract_signaturediscriminator mapping keys to the//////////request property - info
added
abstract_signaturediscriminator mapping keys to the/////////request property - info
added
abstract_signaturediscriminator mapping keys to the//////////request property - info
added
abstract_signaturediscriminator mapping keys to the/////////request property - info
removed
abstraction_signaturediscriminator mapping keys from the////////request property - info
removed
abstraction_signaturediscriminator mapping keys from the/////////////request property - info
removed
abstraction_signaturediscriminator mapping keys from the//////////request property - info
removed
abstraction_signaturediscriminator mapping keys from the/////////request property - info
removed
abstraction_signaturediscriminator mapping keys from the//////////request property - info
removed
abstraction_signaturediscriminator mapping keys from the/////////request property - info
added to the
////////request propertyoneOflist - info
added to the
/////////////request propertyoneOflist - info
added to the
//////////request propertyoneOflist - info
added to the
/////////request propertyoneOflist - info
added to the
//////////request propertyoneOflist - info
added to the
/////////request propertyoneOflist - info
added
abstract_signaturediscriminator mapping keys to the////////response property for the response status - info
added
abstract_signaturediscriminator mapping keys to the/////////////response property for the response status - info
added
abstract_signaturediscriminator mapping keys to the//////////response property for the response status - info
added
abstract_signaturediscriminator mapping keys to the/////////response property for the response status - info
added
abstract_signaturediscriminator mapping keys to the//////////response property for the response status - info
added
abstract_signaturediscriminator mapping keys to the/////////response property for the response status - info
removed
abstraction_signaturediscriminator mapping keys from the////////response property for the response status - info
removed
abstraction_signaturediscriminator mapping keys from the/////////////response property for the response status - info
removed
abstraction_signaturediscriminator mapping keys from the//////////response property for the response status - info
removed
abstraction_signaturediscriminator mapping keys from the/////////response property for the response status - info
removed
abstraction_signaturediscriminator mapping keys from the//////////response property for the response status - info
removed
abstraction_signaturediscriminator mapping keys from the/////////response property for the response status - info
removed from the
////////response propertyoneOflist for the response status - info
removed from the
/////////////response propertyoneOflist for the response status - info
removed from the
//////////response propertyoneOflist for the response status - info
removed from the
/////////response propertyoneOflist for the response status - info
removed from the
//////////response propertyoneOflist for the response status - info
removed from the
/////////response propertyoneOflist for the response status
- breaking