Returns consensus transactions with the given transaction hash.

get/consensus/transactions/{tx_hash}

Path parameters

tx_hashstring required

The transaction hash of the transaction(s) to return. This endpoint can return multiple transactions in cases, where an already processed transaction is re-sent. In such cases only a single transaction will be successfully processed, others will have a failed status (e.g. 'Invalid nonce').

Response

The requested consensus transaction(s).

total_countinteger required

The total number of records that match the query, i.e. the number of records the query would return with limit=infinity.

is_total_count_clippedboolean required

Whether total_count is clipped for performance reasons.

Example response

{
  "total_count": 412,
  "is_total_count_clipped": true,
  "transactions": [
    {
      "block": 8048956,
      "index": 17,
      "timestamp": "2022-10-15T00:05:34Z",
      "hash": "0d0531d6b8a468c07440182b1cdda517f5a076d69fb2199126a83082ecfc0f41",
      "sender": "oasis1qpg2xuz46g53737343r20yxeddhlvc2ldqsjh70p",
      "fee": "1234567890123456789012",
      "gas_limit": "1234567890123456789012",
      "method": "staking.Transfer"
    }
  ]
}

Changes

Changed in 2 of the 3 revisions of this API.13114

  • a841981f8ee11211See the full diff
    • the response's body type/format changed from object/ to / for status 200

      response-body-type-changed

    • removed the required property block from the response with the 200 status

      response-required-property-removed

    • removed the required property body from the response with the 200 status

      response-required-property-removed

    • removed the required property fee from the response with the 200 status

      response-required-property-removed

    • removed the required property gas_limit from the response with the 200 status

      response-required-property-removed

    • removed the required property hash from the response with the 200 status

      response-required-property-removed

    • removed the required property index from the response with the 200 status

      response-required-property-removed

    • removed the required property method from the response with the 200 status

      response-required-property-removed

    • removed the required property nonce from the response with the 200 status

      response-required-property-removed

    • removed the required property sender from the response with the 200 status

      response-required-property-removed

    • removed the required property success from the response with the 200 status

      response-required-property-removed

    • removed the required property timestamp from the response with the 200 status

      response-required-property-removed

    • removed the optional property error from the response with the 200 status

      response-optional-property-removed

    • added List subschema #2 to the response body allOf list for the response status 200

      response-body-all-of-added

  • 51ea4d2cd991113See the full diff
    • the response's body type/format changed from / to object/ for status 200

      response-body-type-changed

    • removed List subschema #2 from the response body allOf list for the response status 200

      response-body-all-of-removed

    • added the optional property error to the response with the 200 status

      response-optional-property-added

    • added the required property block to the response with the 200 status

      response-required-property-added

    • added the required property body to the response with the 200 status

      response-required-property-added

    • added the required property fee to the response with the 200 status

      response-required-property-added

    • added the required property gas_limit to the response with the 200 status

      response-required-property-added

    • added the required property hash to the response with the 200 status

      response-required-property-added

    • added the required property index to the response with the 200 status

      response-required-property-added

    • added the required property method to the response with the 200 status

      response-required-property-added

    • added the required property nonce to the response with the 200 status

      response-required-property-added

    • added the required property sender to the response with the 200 status

      response-required-property-added

    • added the required property success to the response with the 200 status

      response-required-property-added

    • added the required property timestamp to the response with the 200 status

      response-required-property-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog