transactions
Simulate transaction
**Submit transaction for simulation result using JSON **
- Create a SignedTransaction with zero-padded signature
- Submit the user transaction request with the zero-padded siganture.
- The request header "Content-Type" must set to "application/json".
post/transactions/simulate
Request body
Example request
{
"sender": "0xdd",
"sequence_number": "32425224034",
"max_gas_amount": "32425224034",
"gas_unit_price": "32425224034",
"gas_currency_code": "XDX",
"expiration_timestamp_secs": "1635447454",
"payload": {
"type": "script_function_payload",
"function": "0x1::payment_scripts::peer_to_peer_with_metadata",
"type_arguments": [
"0x1::xdx::XDX"
],
"arguments": [
"0x1668f6be25668c1a17cd8caf6b8d2f25",
"2021000000",
"0x",
"0x"
]
},
"signature": {
"type": "ed25519_signature",
"public_key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1",
"signature": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1"
}
}Response
Transaction simulation completed.