Last updated 1 year ago
SimulateRequest is the request type for the Service.Simulate RPC method.
tx is the transaction to simulate. Deprecated. Send raw tx bytes instead.
tx_bytes is the raw transaction.
Since: cosmos-sdk 0.43
SimulateResponse is the response type for the Service.SimulateRPC method.
POST /cosmos/tx/v1beta1/simulate HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 632 { "tx": { "body": { "messages": [ { "type_url": "text", "value": "Ynl0ZXM=" } ], "memo": "text", "timeout_height": "text", "extension_options": [ { "type_url": "text", "value": "Ynl0ZXM=" } ], "non_critical_extension_options": [ { "type_url": "text", "value": "Ynl0ZXM=" } ] }, "auth_info": { "signer_infos": [ { "public_key": { "type_url": "text", "value": "Ynl0ZXM=" }, "mode_info": { "single": { "mode": "SIGN_MODE_UNSPECIFIED" }, "multi": { "bitarray": { "extra_bits_stored": 1, "elems": "Ynl0ZXM=" }, "mode_infos": [] } }, "sequence": "text" } ], "fee": { "amount": [ { "denom": "text", "amount": "text" } ], "gas_limit": "text", "payer": "text", "granter": "text" } }, "signatures": [ "Ynl0ZXM=" ] }, "tx_bytes": "Ynl0ZXM=" }
A successful response.
{ "gas_info": { "gas_wanted": "text", "gas_used": "text" }, "result": { "data": "Ynl0ZXM=", "log": "text", "events": [ { "type": "text", "attributes": [ { "key": "Ynl0ZXM=", "value": "Ynl0ZXM=", "index": true } ] } ] } }