Returns a list of all Echelon caching pools for Parallel.
Endpoint: getPrimePools
Method: POST
Arguments
Name | Type | Description |
---|---|---|
address | String! | The contract address for the prime pool. Required |
cursor | String | The cursor to use for pagination. |
limit | Int | The maximum number of Prime pools to return. |
networkId | Int! | The network ID the prime pool is deployed on. Required |
poolIds | [String] | An optional list of pool IDs to filter by. |
Response
Name | Type | Description |
---|---|---|
calcData | PrimePoolCalcData | Values calculated by Defined using on-chain data. |
chainData | PrimePoolChainData | Values obtained directly from the chain. |
createdAt | Int | When the pool was created by Defined. |
discoveryBlockNumber | Int | The block number for when Defined discovered this pool. |
discoveryTransactionHash | String | The transaction hash of when Defined discovered this pool. |
id | String | The ID of the contract-level Prime Pool (poolContractAddress:networkId). For example, 0x89bb49d06610b4b18e355504551809be5177f3d0:1 . |
networkId | Int | The network ID the Prime Pool is deployed on. |
nftContractAddress | String | The contract address for the tokens cached ib the pool. |
poolContractAddress | String | The contract address for the Prime Pool. |
poolId | String | The ID of the pool within the contract. |
poolType | String | The type of pool for this Prime Pool. |
tokenIds | [String] | The Parallel tokenIds required to cache in the pool. |
totalSupply | String | The # 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
Ask questions, share what you're working on and request new features 👬👭