Transactions

Search for transactions

post

Allows searching for transactions by various criteria (account, block, etc.) on the ICRC-1 ledger.

Body
operatorstringOptional
max_blockintegerOptional
offsetintegerOptional
limitintegerOptional
Responses
200
Search results
application/json
post
POST /v1/<YOUR_API_KEY_HERE>/search/transactions HTTP/1.1
Host: icrc-mainnet.icp.validationcloud.io
Content-Type: application/json
Accept: */*
Content-Length: 588

{
  "network_identifier": {
    "blockchain": "Internet Computer",
    "network": "mxzaz-hqaaa-aaaar-qaada-cai",
    "sub_network_identifier": {
      "network": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    }
  },
  "operator": "text",
  "max_block": 1,
  "offset": 1,
  "limit": 1,
  "transaction_identifier": {
    "hash": null
  },
  "account_identifier": {
    "address": "text",
    "sub_account": {
      "address": "text",
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      }
    },
    "metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  },
  "coin_identifier": {
    "identifier": "text"
  },
  "currency": {
    "symbol": "text",
    "decimals": 1,
    "metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  }
}
{
  "transactions": [
    {
      "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"
      }
    }
  ],
  "total_count": 1,
  "next_offset": 1
}

Was this helpful?