Txs

GetTxsEvent fetches txs by event.

get
Query parameters
eventsstring[]Optional

events is the list of transaction event type.

pagination.keystringOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalboolean · booleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reverseboolean · booleanOptional

reverse is set to true if results are to be returned in the descending order.

order_bystring · enumOptional
  • ORDER_BY_UNSPECIFIED: ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case.
  • ORDER_BY_ASC: ORDER_BY_ASC defines ascending order
  • ORDER_BY_DESC: ORDER_BY_DESC defines descending order
Possible values:
Responses
200
A successful response.
application/json
get
GET /cosmos/tx/v1beta1/txs HTTP/1.1
Host: akt.nownodes.io
Accept: */*
{
  "txs": [
    {
      "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": "[Circular Reference]",
            "sequence": "text"
          }
        ],
        "fee": {
          "amount": [
            {
              "denom": "text",
              "amount": "text"
            }
          ],
          "gas_limit": "text",
          "payer": "text",
          "granter": "text"
        }
      },
      "signatures": [
        "text"
      ]
    }
  ],
  "tx_responses": [
    {
      "height": "text",
      "txhash": "text",
      "codespace": "text",
      "code": 1,
      "data": "text",
      "raw_log": "text",
      "logs": [
        {
          "msg_index": 1,
          "log": "text",
          "events": [
            {
              "type": "text",
              "attributes": [
                {
                  "key": "text",
                  "value": "text"
                }
              ]
            }
          ]
        }
      ],
      "info": "text",
      "gas_wanted": "text",
      "gas_used": "text",
      "tx": {
        "type_url": "text",
        "value": "text"
      },
      "timestamp": "text"
    }
  ],
  "pagination": {
    "next_key": "text",
    "total": "text"
  }
}

BroadcastTx broadcast transaction.

post
Body

BroadcastTxRequest is the request type for the Service.BroadcastTxRequest RPC method.

tx_bytesstringOptional
modestring · enumOptional

BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.

  • BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
  • BROADCAST_MODE_BLOCK: BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for the tx to be committed in a block.
  • BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for a CheckTx execution response only.
  • BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns immediately.
Default: BROADCAST_MODE_UNSPECIFIEDPossible values:
Responses
200
A successful response.
application/json
post
POST /cosmos/tx/v1beta1/txs HTTP/1.1
Host: akt.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 55

{
  "tx_bytes": "text",
  "mode": "BROADCAST_MODE_UNSPECIFIED"
}
{
  "tx_response": {
    "height": "text",
    "txhash": "text",
    "codespace": "text",
    "code": 1,
    "data": "text",
    "raw_log": "text",
    "logs": [
      {
        "msg_index": 1,
        "log": "text",
        "events": [
          {
            "type": "text",
            "attributes": [
              {
                "key": "text",
                "value": "text"
              }
            ]
          }
        ]
      }
    ],
    "info": "text",
    "gas_wanted": "text",
    "gas_used": "text",
    "tx": {
      "type_url": "text",
      "value": "text"
    },
    "timestamp": "text"
  }
}

GetTx fetches a tx by hash.

get
Path parameters
hashstringRequired

hash is the tx hash to query, encoded as a hex string.

Responses
200
A successful response.
application/json
get
GET /cosmos/tx/v1beta1/txs/{hash} HTTP/1.1
Host: akt.nownodes.io
Accept: */*
{
  "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_response": {
    "height": "text",
    "txhash": "text",
    "codespace": "text",
    "code": 1,
    "data": "text",
    "raw_log": "text",
    "logs": [
      {
        "msg_index": 1,
        "log": "text",
        "events": [
          {
            "type": "text",
            "attributes": [
              {
                "key": "text",
                "value": "text"
              }
            ]
          }
        ]
      }
    ],
    "info": "text",
    "gas_wanted": "text",
    "gas_used": "text",
    "tx": {
      "type_url": "text",
      "value": "text"
    },
    "timestamp": "text"
  }
}