Last updated 1 year ago
Was this helpful?
/cosmos/tx/v1beta1/simulate
tx_bytes is the raw transaction.
Since: cosmos-sdk 0.43
tx is the transaction to simulate. Deprecated. Send raw tx bytes instead.
curl -L \ --request POST \ --url '/cosmos/tx/v1beta1/simulate' \ --header 'Content-Type: application/json' \ --data '{"tx":{"signatures":[null],"body":{"messages":[{}],"extension_options":[{}],"non_critical_extension_options":[{}]},"auth_info":{"fee":{"amount":[{}]},"signer_infos":[{"public_key":{},"mode_info":{"single":{"mode":"SIGN_MODE_UNSPECIFIED"},"multi":{"mode_infos":[],"bitarray":{}}}}]}}}'
{ "gas_info": { "gas_wanted": "text", "gas_used": "text" }, "result": { "data": "text", "log": "text", "events": [ { "type": "text", "attributes": [ { "key": "text", "value": "text", "index": true } ] } ] } }