v1

latestOpenAPI 3.0.32026-07-2659172194.6 KB
activities

List history of activities

List activities sorted by updated_at timestamp ascending, useful for time based data replication

get/v1/chains/{chain_name}/activity-history

Path parameters

chain_namestring required

The name of chain

Example:imtbl-zkevm-testnet

The name of chain

Query parameters

from_updated_atstring date-time required
Example:2022-08-16T17:43:26.991388Z

From indexed at including given date

to_updated_atstring date-time
Example:2022-08-16T17:43:26.991388Z

To indexed at including given date

contract_addressstring

The contract address of the collection

activity_type'mint' | 'burn' | 'transfer' | 'sale' | 'deposit' | 'withdrawal'

The activity type

Example:mint

The activity type

page_cursorstring

Encoded page cursor to retrieve previous or next page. Use the value returned in the response.

Example:ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0=

Encoded page cursor to retrieve previous or next page. Use the value returned in the response.

page_sizeinteger

Maximum number of items to return

Example:10

Maximum number of items to return

Response

200 response

Example response

{
  "result": [
    {
      "id": "4e28df8d-f65c-4c11-ba04-6a9dd47b179b",
      "chain": {
        "id": "eip155:13372",
        "name": "imtbl-zkevm-testnet"
      },
      "type": "mint",
      "details": {
        "to": "0xe9b00a87700f660e46b6f5deaa1232836bcc07d3",
        "amount": "1",
        "asset": {
          "contract_address": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
          "token_id": "1",
          "amount": "1"
        }
      },
      "updated_at": "2022-08-16T17:43:26.991388Z",
      "indexed_at": "2022-08-16T17:43:26.991388Z",
      "blockchain_metadata": {
        "transaction_hash": "0x68d9eac5e3b3c3580404989a4030c948a78e1b07b2b5ea5688d8c38a6c61c93e",
        "block_number": "1",
        "transaction_index": "1",
        "log_index": "1"
      }
    }
  ],
  "page": {
    "previous_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICB9Cn0=",
    "next_cursor": "ewogICJ0eXBlIjogInByZXYiLAogICJpdGVtIjogewogICAgImlkIjogNjI3NTEzMCwKICAgICJjcmVhdGVkX2F0IjogIjIwMjItMDktMTNUMTc6MDQ6MTIuMDI0MTI2WiIKICN9Cn0="
  }
}