Skip to main content

/cosmos/tx/v1beta1/simulate REST API Endpoint

Simulate simulates executing a transaction for estimating gas usage.

Updated on
May 09, 2024

Body Parameters

tx
object

Transaction data

body
object

The body of the transaction

messages
array
REQUIRED

Messages included in the transaction

type_url
string

The type URL of the message

exchange_rates
string

The exchange rates

feeder
string

The feeder address

validator
string

The validator address

memo
string

Memo field for additional info

timeout_height
string
REQUIRED

Block height after which this transaction will not be processed

extension_options
array

Extension options for advanced transaction processing

type_url
string

The type URL of the extension

value
string

The value of the extension

non_critical_extension_options
array

Non-critical extension options

type_url
string

The type URL of the non-critical extension

value
string

The value of the non-critical extension

auth_info
object

Authorization info for the transaction

signer_infos
array

Info about signers of the transaction

public_key
object

Public key of the signer

type_url
string

The type URL of the public key

value
string

The value of the public key

mode_info
object

Mode info for signing

single
object

Single mode info

mode
string

Signing mode

multi
object

Multi-signature mode info

bitarray
object

Bit array for multi-signature

extra_bits_stored
integer

Extra bits stored in the bit array

elems
string

Elements of the bit array

mode_infos
array

Info about each signing mode in a multi-signature

sequence
string

Sequence number of the signer

fee
object
REQUIRED

Fee information for the transaction

amount
array

Amount of fees for the transaction

denom
string

The denomination of the fee

amount
string

The amount of the fee

gas_limit
string

The gas limit for the transaction

payer
string

The payer of the transaction fees

granter
string

The granter of the transaction fees

tip
object

The optional tip used for transaction fees paid in another denom

amount
array

Array of objects representing the amount of the tip

denom
string

The denomination of the tip

amount
string

The amount of the tip

tipper
string

The address of the account paying for the tip

signatures
array
REQUIRED

An array of signatures for the transaction

tx_bytes
string

The transaction bytes

Returns

params
object

The params object which contains the following fields:

gas_info
object

The gas_info object which contains the following fields:

gas_wanted
string

The maximum units of work that is allowed to perform

gas_used
string

The amount of gas actually consumed

result
object

The result object which contains the following fields:

data
string

Any data returned from message or handler execution

log
string

The log information from message or handler execution

events
array

An array of events

type
string

The type of the event

attributes
array

An array of attributes

key
string

Attribute key which describes the type of information the value holds

value
string

Attribute value associated with the corresponding key

index
boolean

A boolean flag indicating whether the attribute is indexed

msg_responses
array

An array of message handler responses

type_url
string

A URL/resource name that uniquely identifies the type of the serialized protocol buffer message

value
string

A valid serialized protocol buffer of the above specified type

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free