Get PRIME Pool Events

Returns every event from all Echelon caching pools for Parallel.

Endpoint: getPrimePoolEvents

Method: POST

Arguments

NameTypeDescription
cursorString

The cursor to use for pagination.

eventTypes[PrimePoolEventType]

The event types to query for.

limitInt

The maximum number of Prime Pool events to return.

networkIdInt!

The network ID the Prime pool is deployed on.

Required
poolContractAddressString

The contract address of the Prime pool.

poolIdString

The pool ID for the Prime pool, within the contract.

walletAddressString

The calling wallet address to filter events by.

Response

NameTypeDescription
cursorStringThe cursor to use for pagination.
items[PrimePoolEvent]The list of Prime pool events returned by the query.

NameTypeDescription
blockHashString!The blockHash of the Prime pool event.
blockNumberInt!The blockNumber of the Prime pool event.
dataPrimePoolEventData!The event data for the Prime pool event.
eventTypePrimePoolEventType!The Prime pool event type.
fromString!The Prime pool event's calling address.
fromHashKeyString!The Prime pool event's calling address, and network ID (from:networkId).
idString!The Prime pool event ID (poolContractAddress:poolId:networkId)
logIndexInt!The logIndex of the Prime pool event.
networkIdInt!The network ID of the Prime pool event.
poolContractAddressString!The Prime pool contract address.
poolIdString!The Prime pool ID.
poolTypePrimePoolType!The Prime pool type.
sortKeyString!The sort key of the Prime pool event (blockNumber:transactionIndex:logIndex).
timestampInt!The timestamp of the Prime pool event.
transactionHashString!The transactionHash of the Prime pool event.
transactionIndexInt!The transactionIndex of the Prime pool event.

Example

Get data for all events going through Echelon caching pools

Use this query to find all the individual events on Echelon caching pools

{
  getPrimePoolEvents(networkId: 1) {
    items {
      blockHash
      blockNumber
      data {
        ... on PrimePoolClaimPrimeData {
          __typename
          currency
          eventAmount
          type
          user
          userPrimeRewardDebt
        }
      }
      eventType
      from
      fromHashKey
      id
      logIndex
      networkId
      poolContractAddress
      poolId
      poolType
      sortKey
      timestamp
      transactionHash
      transactionIndex
    }
  }
}
{
  "data": {
    "getPrimePoolEvents": {
      "items": [
        {
          "blockHash": "0x834d5dd652687233d58a91ac8e0f248efc07d6ea3467a6cd1908e2bb8bb61478",
          "blockNumber": 17673265,
          "data": {},
          "eventType": "CLAIM",
          "from": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
          "fromHashKey": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca:1",
          "id": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449:0:1",
          "logIndex": 393,
          "networkId": 1,
          "poolContractAddress": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449",
          "poolId": "0",
          "poolType": "ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673265#00000106#00000393",
          "timestamp": 1689113639,
          "transactionHash": "0xc7a0114e67a2605fb9309e1680a6e36c9634f8638f8da75c939b23998c288ac1",
          "transactionIndex": 106
        },
        {
          "blockHash": "0x834d5dd652687233d58a91ac8e0f248efc07d6ea3467a6cd1908e2bb8bb61478",
          "blockNumber": 17673265,
          "data": {},
          "eventType": "LOG_UPDATE_POOL",
          "from": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
          "fromHashKey": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca:1",
          "id": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449:0:1",
          "logIndex": 392,
          "networkId": 1,
          "poolContractAddress": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449",
          "poolId": "0",
          "poolType": "ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673265#00000106#00000392",
          "timestamp": 1689113639,
          "transactionHash": "0xc7a0114e67a2605fb9309e1680a6e36c9634f8638f8da75c939b23998c288ac1",
          "transactionIndex": 106
        },
        {
          "blockHash": "0x834d5dd652687233d58a91ac8e0f248efc07d6ea3467a6cd1908e2bb8bb61478",
          "blockNumber": 17673265,
          "data": {
            "__typename": "PrimePoolClaimPrimeData",
            "currency": "PRIME",
            "eventAmount": "4893988738775708307",
            "type": "CLAIM",
            "user": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
            "userPrimeRewardDebt": "490711305840807052198"
          },
          "eventType": "CLAIM",
          "from": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
          "fromHashKey": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca:1",
          "id": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449:0:1",
          "logIndex": 391,
          "networkId": 1,
          "poolContractAddress": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449",
          "poolId": "0",
          "poolType": "ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673265#00000106#00000391",
          "timestamp": 1689113639,
          "transactionHash": "0xc7a0114e67a2605fb9309e1680a6e36c9634f8638f8da75c939b23998c288ac1",
          "transactionIndex": 106
        },
        {
          "blockHash": "0x834d5dd652687233d58a91ac8e0f248efc07d6ea3467a6cd1908e2bb8bb61478",
          "blockNumber": 17673265,
          "data": {},
          "eventType": "LOG_UPDATE_POOL",
          "from": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
          "fromHashKey": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca:1",
          "id": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449:0:1",
          "logIndex": 389,
          "networkId": 1,
          "poolContractAddress": "0xa0cd986f53cbf8b8fb7bf6fb14791e31aeb9e449",
          "poolId": "0",
          "poolType": "ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673265#00000106#00000389",
          "timestamp": 1689113639,
          "transactionHash": "0xc7a0114e67a2605fb9309e1680a6e36c9634f8638f8da75c939b23998c288ac1",
          "transactionIndex": 106
        },
        {
          "blockHash": "0x9ce853bea11ee411d4bc209a5fd2f5f3b0517d5b73337a4f8a6432e982f4ca3e",
          "blockNumber": 17673263,
          "data": {
            "__typename": "PrimePoolClaimPrimeData",
            "currency": "PRIME",
            "eventAmount": "8238530986171410023",
            "type": "CLAIM",
            "user": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
            "userPrimeRewardDebt": "1463930643679042602070"
          },
          "eventType": "CLAIM",
          "from": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
          "fromHashKey": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca:1",
          "id": "0x89bb49d06610b4b18e355504551809be5177f3d0:228:1",
          "logIndex": 474,
          "networkId": 1,
          "poolContractAddress": "0x89bb49d06610b4b18e355504551809be5177f3d0",
          "poolId": "228",
          "poolType": "TIMED_CACHE_ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673263#00000149#00000474",
          "timestamp": 1689113615,
          "transactionHash": "0x08df86c4e14f15e45903cb0db13419be5cf4c6f551500b7756022947eb4d457f",
          "transactionIndex": 149
        },
        {
          "blockHash": "0x9ce853bea11ee411d4bc209a5fd2f5f3b0517d5b73337a4f8a6432e982f4ca3e",
          "blockNumber": 17673263,
          "data": {},
          "eventType": "LOG_UPDATE_POOL",
          "from": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca",
          "fromHashKey": "0x0ca85b489a1276ef7042f1d032d0ef3831eaf4ca:1",
          "id": "0x89bb49d06610b4b18e355504551809be5177f3d0:228:1",
          "logIndex": 472,
          "networkId": 1,
          "poolContractAddress": "0x89bb49d06610b4b18e355504551809be5177f3d0",
          "poolId": "228",
          "poolType": "TIMED_CACHE_ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673263#00000149#00000472",
          "timestamp": 1689113615,
          "transactionHash": "0x08df86c4e14f15e45903cb0db13419be5cf4c6f551500b7756022947eb4d457f",
          "transactionIndex": 149
        },
        {
          "blockHash": "0xbe37284c86ceca3343c9f8dcb04bcc4483b3c1c3112536f509e0f3ad1795e3e8",
          "blockNumber": 17673219,
          "data": {
            "__typename": "PrimePoolClaimPrimeData",
            "currency": "PRIME",
            "eventAmount": "121457929446816679113",
            "type": "CLAIM",
            "user": "0x75d4bdbf6593ed463e9625694272a0ff9a6d346f",
            "userPrimeRewardDebt": "9079058628784578225109"
          },
          "eventType": "CLAIM",
          "from": "0x75d4bdbf6593ed463e9625694272a0ff9a6d346f",
          "fromHashKey": "0x75d4bdbf6593ed463e9625694272a0ff9a6d346f:1",
          "id": "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041:0:1",
          "logIndex": 348,
          "networkId": 1,
          "poolContractAddress": "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041",
          "poolId": "0",
          "poolType": "PRIME_REWARDS",
          "sortKey": "0000000017673219#00000141#00000348",
          "timestamp": 1689113087,
          "transactionHash": "0xd9716cd6ef1eee63909dda4bf2d3c610f43065e1af71a87e96ee2f80e59840ba",
          "transactionIndex": 141
        },
        {
          "blockHash": "0xbe37284c86ceca3343c9f8dcb04bcc4483b3c1c3112536f509e0f3ad1795e3e8",
          "blockNumber": 17673219,
          "data": {},
          "eventType": "LOG_UPDATE_POOL",
          "from": "0x75d4bdbf6593ed463e9625694272a0ff9a6d346f",
          "fromHashKey": "0x75d4bdbf6593ed463e9625694272a0ff9a6d346f:1",
          "id": "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041:0:1",
          "logIndex": 346,
          "networkId": 1,
          "poolContractAddress": "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041",
          "poolId": "0",
          "poolType": "PRIME_REWARDS",
          "sortKey": "0000000017673219#00000141#00000346",
          "timestamp": 1689113087,
          "transactionHash": "0xd9716cd6ef1eee63909dda4bf2d3c610f43065e1af71a87e96ee2f80e59840ba",
          "transactionIndex": 141
        },
        {
          "blockHash": "0xecb9b769213a403115574f727c780bdae5989427c6807f082010e961413c4333",
          "blockNumber": 17673185,
          "data": {
            "__typename": "PrimePoolClaimPrimeData",
            "currency": "PRIME",
            "eventAmount": "45773121691433282066",
            "type": "CLAIM",
            "user": "0xf8e11bdc54955d8484a45f24693d3d0ebd8b6bfd",
            "userPrimeRewardDebt": "2702140829427416474999"
          },
          "eventType": "CLAIM",
          "from": "0xf8e11bdc54955d8484a45f24693d3d0ebd8b6bfd",
          "fromHashKey": "0xf8e11bdc54955d8484a45f24693d3d0ebd8b6bfd:1",
          "id": "0x89bb49d06610b4b18e355504551809be5177f3d0:208:1",
          "logIndex": 167,
          "networkId": 1,
          "poolContractAddress": "0x89bb49d06610b4b18e355504551809be5177f3d0",
          "poolId": "208",
          "poolType": "TIMED_CACHE_ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673185#00000075#00000167",
          "timestamp": 1689112667,
          "transactionHash": "0xd6ef6e16bd22b884a3dbb51cc068b538bb95cd4e64772379d4969b8da39028b7",
          "transactionIndex": 75
        },
        {
          "blockHash": "0xecb9b769213a403115574f727c780bdae5989427c6807f082010e961413c4333",
          "blockNumber": 17673185,
          "data": {},
          "eventType": "LOG_UPDATE_POOL",
          "from": "0xf8e11bdc54955d8484a45f24693d3d0ebd8b6bfd",
          "fromHashKey": "0xf8e11bdc54955d8484a45f24693d3d0ebd8b6bfd:1",
          "id": "0x89bb49d06610b4b18e355504551809be5177f3d0:208:1",
          "logIndex": 165,
          "networkId": 1,
          "poolContractAddress": "0x89bb49d06610b4b18e355504551809be5177f3d0",
          "poolId": "208",
          "poolType": "TIMED_CACHE_ETH_AND_PRIME_REWARDS",
          "sortKey": "0000000017673185#00000075#00000165",
          "timestamp": 1689112667,
          "transactionHash": "0xd6ef6e16bd22b884a3dbb51cc068b538bb95cd4e64772379d4969b8da39028b7",
          "transactionIndex": 75
        }
      ]
    }
  }
}

Explore

πŸ‘‹

Join our Discord

Ask questions, share what you're working on and request new features πŸ‘¬πŸ‘­