v1

latestOpenAPI 3.0.02026-07-17224996.6 KB
Transactions

Get a Transaction by ID.

Get a transaction data by the provided transaction ID. If the transaction is a scheduled transaction, it can alternatively be retrieved by the scheduled transaction ID field returned by the system contract.

get/transactions/{id}

Path parameters

idstring required

A transaction identifier. This may be a 64-character hex-encoded transaction ID (e.g. a1b2c3...) or a uint64 scheduled transaction ID returned by the system contract.

Query parameters

block_idstring hexadecimal

A 32-byte unique identifier for an entity.

A block ID optional parameter

collection_idstring hexadecimal

A 32-byte unique identifier for an entity.

A collection ID optional parameter.

expandstring[]

A comma-separated list indicating which properties of the content to expand.

selectstring[]

A comma-separated list indicating which properties of the content to return.

Response

OK

idstring hexadecimal required

A 32-byte unique identifier for an entity.

scriptstring base64 required

Base64 encoded Cadence script.

argumentsstring[] required

Array of Base64 encoded arguments with in JSON-Cadence interchange format.

reference_block_idstring hexadecimal required

A 32-byte unique identifier for an entity.

gas_limitstring uint64 required

The limit on the amount of computation a transaction is allowed to preform.

payerstring hexadecimal required

The 8-byte address of an account.

authorizersAddress[] required

Example response

{
  "_links": null,
  "reference_block_id": null,
  "payer": "payer",
  "script": "script",
  "result": {
    "collection_id": null,
    "error_message": "error_message",
    "execution": "Pending",
    "metadata": {
      "executor_metadata": {
        "execution_result_id": null,
        "executor_ids": [
          null,
          null
        ]
      }
    },
    "status_code": 0,
    "_links": {
      "_self": "_self"
    },
    "block_id": null,
    "computation_used": "computation_used",
    "events": [
      {
        "transaction_id": null,
        "payload": "",
        "transaction_index": "transaction_index",
        "type": "type",
        "event_index": "event_index"
      },
      {
        "transaction_id": null,
        "payload": "",
        "transaction_index": "transaction_index",
        "type": "type",
        "event_index": "event_index"
      }
    ],
    "status": "Pending"
  },
  "envelope_signatures": [
    null,
    null
  ],
  "gas_limit": "gas_limit",
  "payload_signatures": [
    {
      "address": null,
      "signature": "",
      "key_index": "key_index"
    },
    {
      "address": null,
      "signature": "",
      "key_index": "key_index"
    }
  ],
  "arguments": [
    "",
    ""
  ],
  "id": "id",
  "authorizers": [
    null,
    null
  ],
  "_expandable": {
    "result": "http://example.com/aeiou"
  },
  "proposal_key": {
    "sequence_number": "sequence_number",
    "address": null,
    "key_index": "key_index"
  }
}