Transaction

Get a transaction within a block

post

Fetches the details of a transaction in a specified ICRC-1 ledger block.

Body
Responses
200
Block transaction response
application/json
post
POST /v1/<YOUR_API_KEY_HERE>/block/transaction HTTP/1.1
Host: icrc-mainnet.icp.validationcloud.io
Content-Type: application/json
Accept: */*
Content-Length: 275

{
  "network_identifier": {
    "blockchain": "Internet Computer",
    "network": "mxzaz-hqaaa-aaaar-qaada-cai",
    "sub_network_identifier": {
      "network": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  },
  "block_identifier": {
    "index": 1,
    "hash": "text"
  },
  "transaction_identifier": {
    "hash": null
  }
}
{
  "transaction": {
    "transaction_identifier": {
      "hash": null
    },
    "operations": [
      {
        "operation_identifier": {
          "index": 1,
          "network_index": 1
        },
        "related_operations": [
          {
            "index": 1,
            "network_index": 1
          }
        ],
        "type": "text",
        "status": "text",
        "account": {
          "address": "text",
          "sub_account": {
            "address": "text",
            "metadata": {
              "ANY_ADDITIONAL_PROPERTY": "anything"
            }
          },
          "metadata": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          }
        },
        "amount": {
          "value": "text",
          "currency": {
            "symbol": "text",
            "decimals": 1,
            "metadata": {
              "ANY_ADDITIONAL_PROPERTY": "anything"
            }
          },
          "metadata": {
            "ANY_ADDITIONAL_PROPERTY": "anything"
          }
        },
        "metadata": {
          "ANY_ADDITIONAL_PROPERTY": "anything"
        }
      }
    ],
    "metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  }
}

Was this helpful?