Clusters
  • Introduction
    • Overview
    • Concepts
      • Cluster Name
      • Wallet Name
    • Features
      • Communities
      • Multichain
      • Wallet Bundles
      • Antisquatting
      • Wallet Generation
      • Selective Wallet Sharing
  • Getting started
    • Javascript
      • Authentication
      • Clusters
      • Address → Cluster Name
      • Cluster Name → Address
      • Registration
        • Communities
      • Event Indexing
    • API
      • v1
        • Authentication
        • Clusters
        • Address → Cluster Name
        • Cluster Name → Address
        • Registration
          • Communities
        • Event Indexing
      • v0.1 (Deprecated)
        • Address → Cluster
        • Cluster → Address
        • Cluster → Metadata
        • Registration
        • Managing Wallets
  • Resources
    • Smart Contracts
    • Address Types
    • Using Clusters for ETH->SOL Airdrops
  • Integration Guides
    • Convert hex address to clusters name
    • Registering a name
      • Ethereum Networks
      • Solana
    • Whitelabel Communities Registration Flow
Powered by GitBook
On this page
  1. Getting started
  2. Javascript

Event Indexing

Events

Get a list of historical events that happen on the Clusters application that can be replayed to get the full state.

Name
Description

nextPage (optional)

The next page attribute to retrieve more data

limit (optional)

How many rows to return. Defaults to 500

from (optional)

The user who initiated the event

orderBy (optional)

oldest or newest Defaults to oldest

fromTimestamp (optional)

Timestamp in ms to start at

Note: If you use the nextPage query param, fromTimestamp will be ignored.

Example

const events = await clusters.getEvents({ limit: 1, nextPage: 'sAPGZWgLwk' })

Response

List of events

{
  "items": [
    {
      "id": "SqEhcVxrs2",
      "type": "ADD_WALLET",
      "from": "0x6ed7d526b020780f694f3c10dfb25e1b134d3215",
      "data": {
        "name": "main",
        "address": "0x6ed7d526b020780f694f3c10dfb25e1b134d3215",
        "cluster_id": "0x414d66466808501ce4eb380bcc67eddba8b3379363dafb635e5ccc5f90871fb5",
        "is_verified": true,
        "is_backed_up": false
      },
      "isTestnet": false,
      "timestamp": 1706797486000
    },
    {
      "id": "aSBcH9uPdG",
      "type": "REGISTER_NAME",
      "from": "0x822b5a721b4bcf8e627f0dc287c57f187d0b17dc",
      "data": {
        "name": "torje",
        "wei_amount": "10000000000000000"
      },
      "isTestnet": false,
      "timestamp": 1706799767000
    },
    {
      "id": "96HQxn4l5q",
      "type": "REGISTER_NAME",
      "from": "0xd64477d0f5fe7e6b8486a336fe694ef7789ab912",
      "data": {
        "name": "misconix",
        "wei_amount": "10000000000000000"
      },
      "isTestnet": false,
      "timestamp": 1706799779000
    }
  ],
  "nextPage": "1iW2vjkBqM"
}
null

PreviousCommunitiesNextAPI

Last updated 1 month ago