SimulateRequest is the request type for the Service.Simulate RPC method.
tx is the transaction to simulate. Deprecated. Send raw tx bytes instead.
SimulateResponse is the response type for the Service.SimulateRPC method.
POST /cosmos/tx/v1beta1/simulate HTTP/1.1 Host: luna.nownodes.io Content-Type: application/json Accept: */* Content-Length: 627 { "tx": { "body": { "messages": [ { "type_url": "text", "value": "text" } ], "memo": "text", "timeout_height": "text", "extension_options": [ { "type_url": "text", "value": "text" } ], "non_critical_extension_options": [ { "type_url": "text", "value": "text" } ] }, "auth_info": { "signer_infos": [ { "public_key": { "type_url": "text", "value": "text" }, "mode_info": { "single": { "mode": "SIGN_MODE_UNSPECIFIED" }, "multi": "[Circular Reference]" }, "sequence": "text" } ], "fee": { "amount": [ { "denom": "text", "amount": "text" } ], "gas_limit": "text", "payer": "text", "granter": "text" }, "tip": { "amount": [ { "denom": "text", "amount": "text" } ], "tipper": "text" } }, "signatures": [ "text" ] }, "tx_bytes": "text" }
A successful response.
{ "gas_info": { "gas_wanted": "text", "gas_used": "text" }, "result": { "data": "text", "log": "text", "events": [ { "type": "text", "attributes": [ { "key": "text", "value": "text", "index": true } ] } ], "msg_responses": [ { "type_url": "text", "value": "text" } ] } }