Simulate transaction
POST/transactions/simulate
API that simulates a transaction without actually executing it.
The simulation result includes the same transaction output and events as when executing an actual signed transaction. However, the state hash is not included because storage is not updated. You can use this API to estimate the maximum gas amount required when submitting a transaction.
How to use:
- Create a transaction with zero-padded signatures.
- Submit the created transaction to this API.
To use this endpoint in BCS format, you must submit a signed transaction encoded in BCS.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 410
- 429
Successful Response
Response Headers
Current block height of the chain
Chain ID of the current chain
Current epoch of the chain
Oldest unpruned ledger version of the chain
Current timestamp of the chain
Current ledger version of the chain
Oldest unpruned block height of the chain
Cursor for the next page
Amount of gas actually used for transaction execution
Bad Request
Unauthorized
Forbidden
Not Found
Block Pruned
Too Many Requests