Get PRIME Pools

Returns a list of all Echelon caching pools for Parallel.

Endpoint: getPrimePools

Method: POST

Arguments

NameTypeDescription
addressString!

The contract address for the prime pool.

Required
cursorString

The cursor to use for pagination.

limitInt

The maximum number of Prime pools to return.

networkIdInt!

The network ID the prime pool is deployed on.

Required
poolIds[String]

An optional list of pool IDs to filter by.

Response

NameTypeDescription
cursorStringA cursor for use in pagination.
items[PrimePool]A list of prime pools.

NameTypeDescription
calcDataPrimePoolCalcDataValues calculated by Defined using on-chain data.
chainDataPrimePoolChainDataValues obtained directly from the chain.
createdAtIntWhen the pool was created by Defined.
discoveryBlockNumberIntThe block number for when Defined discovered this pool.
discoveryTransactionHashStringThe transaction hash of when Defined discovered this pool.
idStringThe ID of the contract-level Prime Pool (poolContractAddress:networkId). For example, 0x89bb49d06610b4b18e355504551809be5177f3d0:1.
networkIdIntThe network ID the Prime Pool is deployed on.
nftContractAddressStringThe contract address for the tokens cached ib the pool.
poolContractAddressStringThe contract address for the Prime Pool.
poolIdStringThe ID of the pool within the contract.
poolTypeStringThe type of pool for this Prime Pool.
tokenIds[String]The Parallel tokenIds required to cache in the pool.
totalSupplyStringThe # of cached sets in the pool.

Example

Get data for the Prime Key Cache

Use this query to find all the data for the Echelon caching pool that holds Prime Keys

{
  getPrimePools(address: "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041", networkId: 1) {
    items {
      calcData {
        poolAccumulatedEth
        poolAccumulatedPrime
        poolEthPerDay
        poolEthAmount
        poolEthPerSecond
        poolPrimeAmount
        poolPrimePerDay
        poolPrimePerSecond
        shareAccumulatedEth
        shareAccumulatedPrime
        shareEthPerDay
        shareEthPerSecond
        sharePrimePerDay
        sharePrimePerSecond
      }
      chainData {
        cachingPaused
        ethAllocPoint
        ethClaimed
        ethEndTimestamp
        ethLastRewardTimestamp
        ethReward
        ethStartTimestamp
        ethTimedCachePeriod
        ethTotalAllocPoint
        primeAllocPoint
        primeEndTimestamp
        primeLastRewardTimestamp
        primeStartTimestamp
        primeTotalAllocPoint
      }
      createdAt
      discoveryBlockNumber
      discoveryTransactionHash
      id
      networkId
      nftContractAddress
      poolContractAddress
      poolId
      poolType
      tokenIds
      totalSupply
    }
  }
}
{
  "data": {
    "getPrimePools": {
      "items": [
        {
          "calcData": {
            "poolAccumulatedEth": null,
            "poolAccumulatedPrime": "12568463545907812563143579",
            "poolEthPerDay": null,
            "poolEthAmount": null,
            "poolEthPerSecond": null,
            "poolPrimeAmount": "231952865747251637893378",
            "poolPrimePerDay": "33485540420229179673600",
            "poolPrimePerSecond": "387564125234134024",
            "shareAccumulatedEth": null,
            "shareAccumulatedPrime": "9074702921233077662920",
            "shareEthPerDay": null,
            "shareEthPerSecond": null,
            "sharePrimePerDay": "24177285501970526840",
            "sharePrimePerSecond": "279829693309844"
          },
          "chainData": {
            "cachingPaused": false,
            "ethAllocPoint": null,
            "ethClaimed": null,
            "ethEndTimestamp": null,
            "ethLastRewardTimestamp": null,
            "ethReward": null,
            "ethStartTimestamp": null,
            "ethTimedCachePeriod": null,
            "ethTotalAllocPoint": null,
            "primeAllocPoint": "1",
            "primeEndTimestamp": 1689696000,
            "primeLastRewardTimestamp": 1689097511,
            "primeStartTimestamp": "1688140801",
            "primeTotalAllocPoint": "1"
          },
          "createdAt": 1683832592,
          "discoveryBlockNumber": 15124522,
          "discoveryTransactionHash": "0xc153c223d0b3cfcf93c67cf38d07746a531f0af8ddf8009acc04773ee581ea03",
          "id": "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041:1",
          "networkId": 1,
          "nftContractAddress": "0x76be3b62873462d2142405439777e971754e8e77",
          "poolContractAddress": "0x3399eff96d4b6bae8a56f4852eb55736c9c2b041",
          "poolId": "0",
          "poolType": "PRIME_REWARDS",
          "tokenIds": [
            "87"
          ],
          "totalSupply": "1385"
        }
      ]
    }
  }
}

Explore

πŸ‘‹

Join our Discord

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