Simulate transaction
Changed onThe output of the transaction will have the exact transaction outputs and events that running an actual signed transaction would have. However, it will not have the associated state hashes, as they are not updated in storage. This can be used to estimate the maximum gas units for a submitted transaction.
To use this, you must:
- Create a SignedTransaction with a zero-padded signature.
- Submit a SubmitTransactionRequest containing a UserTransactionRequest containing that signature.
To use this endpoint with BCS, you must submit a SignedTransaction encoded as BCS. See SignedTransaction in types/src/transaction/mod.rs.
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/transactions/simulate
- Authnone declared
Query parameters
If set to true, the max gas value in the transaction will be ignored and the maximum possible gas will be used
If set to true, the gas unit price in the transaction will be ignored and the estimated value will be used
If set to true, the transaction will use a higher price than the original estimate.
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 status200 - breaking
the mandatory response header
X-APTOS-CHAIN-IDremoved for the status200 - breaking
the mandatory response header
X-APTOS-EPOCHremoved for the status200 - breaking
the mandatory response header
X-APTOS-LEDGER-OLDEST-VERSIONremoved for the status200 - breaking
the mandatory response header
X-APTOS-LEDGER-TIMESTAMPUSECremoved for the status200 - breaking
the mandatory response header
X-APTOS-LEDGER-VERSIONremoved for the status200 - breaking
the mandatory response header
X-APTOS-OLDEST-BLOCK-HEIGHTremoved for the status200 - 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 status200 - 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 status200 - 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