Get PRIME Pool Assets

Returns every event from all Echelon caching pools for Parallel.

Endpoint: getPrimePoolAssets

Method: POST

Arguments

NameTypeDescription
cursorString

The cursor to use for pagination.

limitInt

The maximum number of Prime Pool assets 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 owner wallet address to filter assets by.

Response

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

NameTypeDescription
amountString!The number of cached Prime pool assets of this type by this owner.
ethRewardDebtStringThe amount of ETH the user is not eligible for either from having already harvesting or from not caching in the past.
fromString!The owner wallet address of the cached Prime pool asset.
fromHashKeyString!The owner wallet address of the cached Prime pool asset, and network ID (from:networkId).
fromSortKeyString!The Prime pool ID and Prime pool contract address (poolId:poolContractAddress).
idString!The Prime pool asset ID (poolContractAddress:poolId:networkId)
networkIdInt!The network ID of the cached Prime pool asset.
poolContractAddressString!THe contract address of the Prime pool.
poolIdString!The Prime pool ID.
primeRewardDebtStringThe amount of PRIME the user is not eligible for either from having already harvesting or from not caching in the past.
sortKeyString!The owner wallet address of the cached Prime pool asset.

Example

Get all cached Primesets for pool ID 27 (Parallel Pack Drop 6 First Edition Paraset)

Use this query to find data for all Parallel PD6 FE Parasets cached in the Echelon PrimeRewards caching pool.

{
  getPrimePoolAssets(networkId: 1, poolId: "27", poolContractAddress: "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd") {
    cursor
    items {
      id
      sortKey
      primeRewardDebt
      poolId
      poolContractAddress
      networkId
      fromSortKey
      fromHashKey
      from
      amount
    }
  }
}
{
  "data": {
    "getPrimePoolAssets": {
      "cursor": "eyJpdiI6IjY0ZTRmMGJlYTNkNTQ3YzI5MjE4MDg4MGQyMTE3MjY5IiwiY29udGVudCI6ImVjMGM3ZGYwNzgyY2M1N2JkNjI5ZjVlOGM3MDI4YjU3M2QyMzE0MTg1NWVjOTI2MmY1ODVkYjMyNjVmYWYwMWJlZGE3MTk0ZDMxMGQ1YjdkOTY2YTc5NGNkNmUzZDQ2ODIxZjMyNDZmMjYxOGNjMTI2YTZlNzAxNDM0MDFiZmZjN2RhNTRjYzAyMGQxZDkzODk4ODYyZWFiYzhiOGY5MDU0NTQzY2UzYTEzNGM0YzA0OWNkN2E1OThiZTMzYzE3OTk3N2Y1NTM4ZTNlOTE0NGM0MTk0YmJhMzlmMmYwMDg1YjEwZDE4OWU5ZWE3YzJhMjc3NDc5OCJ9",
      "items": [
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x0066a079c554048b5e19da353b6ef44693de771d",
          "primeRewardDebt": "0",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x0066a079c554048b5e19da353b6ef44693de771d:1",
          "from": "0x0066a079c554048b5e19da353b6ef44693de771d",
          "amount": "0"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x00903f96abe2743b81fc7fcf4874c715a3fe1c88",
          "primeRewardDebt": "70262582652118701340",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x00903f96abe2743b81fc7fcf4874c715a3fe1c88:1",
          "from": "0x00903f96abe2743b81fc7fcf4874c715a3fe1c88",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x023192b16a986dc4e5cb76c1ec2f4d2de4d08462",
          "primeRewardDebt": "70469293477691380025",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x023192b16a986dc4e5cb76c1ec2f4d2de4d08462:1",
          "from": "0x023192b16a986dc4e5cb76c1ec2f4d2de4d08462",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x02535f81854b731a185a765286f7196c6c2b63a4",
          "primeRewardDebt": "70469293477691380025",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x02535f81854b731a185a765286f7196c6c2b63a4:1",
          "from": "0x02535f81854b731a185a765286f7196c6c2b63a4",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x0369aefc252396e43e9ed136ec96f63e462ee66b",
          "primeRewardDebt": "65983743546048855233",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x0369aefc252396e43e9ed136ec96f63e462ee66b:1",
          "from": "0x0369aefc252396e43e9ed136ec96f63e462ee66b",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x03f2b37a122c55531702f8013f61943c687eb413",
          "primeRewardDebt": "0",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x03f2b37a122c55531702f8013f61943c687eb413:1",
          "from": "0x03f2b37a122c55531702f8013f61943c687eb413",
          "amount": "0"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x0447e77b02348ada1a0f0a83dfdfd2da74e82e4f",
          "primeRewardDebt": "66993388328376321283",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x0447e77b02348ada1a0f0a83dfdfd2da74e82e4f:1",
          "from": "0x0447e77b02348ada1a0f0a83dfdfd2da74e82e4f",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x05723597e3a552616739dc5c45a4f595ad838764",
          "primeRewardDebt": "70469293477691380025",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x05723597e3a552616739dc5c45a4f595ad838764:1",
          "from": "0x05723597e3a552616739dc5c45a4f595ad838764",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x05cf954cf50db4208c33602e68ead1353d93aaa6",
          "primeRewardDebt": "4654107466294766727",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x05cf954cf50db4208c33602e68ead1353d93aaa6:1",
          "from": "0x05cf954cf50db4208c33602e68ead1353d93aaa6",
          "amount": "1"
        },
        {
          "id": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd:27:1",
          "sortKey": "0x07957109221d9e71c83c332a998116a9544e2f94",
          "primeRewardDebt": "70469293477691380025",
          "poolId": "27",
          "poolContractAddress": "0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "networkId": 1,
          "fromSortKey": "27:0xeca9d81a4dc7119a40481cff4e7e24dd0aaf56bd",
          "fromHashKey": "0x07957109221d9e71c83c332a998116a9544e2f94:1",
          "from": "0x07957109221d9e71c83c332a998116a9544e2f94",
          "amount": "1"
        }
      ]
    }
  }
}

Explore

πŸ‘‹

Join our Discord

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