Decode

TxDecode decodes the transaction.

Since: cosmos-sdk 0.47

POSThttps://zetachain.nownodes.io/cosmos/tx/v1beta1/decode
Body
tx_bytesstring (byte)

tx_bytes is the raw transaction.

Response

A successful response.

Body
txcosmos.tx.v1beta1.Tx (object)

Tx is the standard type used for broadcasting transactions.

Request
const response = await fetch('https://zetachain.nownodes.io/cosmos/tx/v1beta1/decode', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "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": {
                "elems": "Ynl0ZXM="
              },
              "mode_infos": []
            }
          },
          "sequence": "text"
        }
      ],
      "fee": {
        "amount": [
          {
            "denom": "text",
            "amount": "text"
          }
        ],
        "gas_limit": "text",
        "payer": "text",
        "granter": "text"
      },
      "tip": {
        "amount": [
          {
            "denom": "text",
            "amount": "text"
          }
        ],
        "tipper": "text"
      }
    },
    "signatures": [
      "Ynl0ZXM="
    ]
  }
}