Simulate

Simulate simulates executing a transaction for estimating gas usage.

post
Body

SimulateRequest is the request type for the Service.Simulate RPC method.

tx_bytesstringOptional
Responses
200
A successful response.
application/json
post
POST /cosmos/tx/v1beta1/simulate HTTP/1.1
Host: akt.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 559

{
  "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"
      }
    },
    "signatures": [
      "text"
    ]
  },
  "tx_bytes": "text"
}
{
  "gas_info": {
    "gas_wanted": "text",
    "gas_used": "text"
  },
  "result": {
    "data": "text",
    "log": "text",
    "events": [
      {
        "type": "text",
        "attributes": [
          {
            "key": "text",
            "value": "text",
            "index": true
          }
        ]
      }
    ]
  }
}