Mining List
Mining List
- An application that needs to integrate with DODO's mining pool listing.
URL#
https://api.dodoex.io/graphql?opname=MiningList&apikey=${apikey}
curl -i -X POST \
-H "Content-Type:application/json" \
-d \
'{
"operationName": "MiningList",
"variables": {
"where": {
"chainIds": [
56,
1,
137,
42161,
66,
1313161554,
43114,
10,
1030,
8453,
59144,
534352,
169
],
"user": "",
"filterState": {
"address": "",
"isEnded": false
}
}
},
"query": "query MiningList($where: Miningmining_list_filter) {\n mining_list(where: $where) {\n list {\n chainId\n type\n version\n address\n baseApy\n baseLpToken {\n decimals\n id\n symbol\n __typename\n }\n baseToken {\n decimals\n id\n price\n symbol\n logoImg\n __typename\n }\n endBlock\n miningContractAddress\n baseLpTokenMining\n quoteLpTokenMining\n quoteApy\n quoteLpToken {\n decimals\n id\n symbol\n __typename\n }\n quoteToken {\n decimals\n id\n price\n symbol\n logoImg\n __typename\n }\n rewardTokenInfos {\n apy\n decimals\n endBlock\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n symbol\n __typename\n }\n rewardQuoteTokenInfos {\n apy\n decimals\n endBlock\n id\n price\n logoImg\n rewardNumIndex\n rewardPerBlock\n startBlock\n symbol\n __typename\n }\n startBlock\n title\n platform\n __typename\n }\n totalCount\n chains\n __typename\n }\n}"
}' \
'https://api.dodoex.io/graphql?opname=MiningList&apikey=dododocstestapikey'
Request Parameters#
Use GraphQL for data querying.
variables.where
Parameter name | Type of parameter | Description |
---|---|---|
chainIds | Array | Chain IDs: 1, 56, 137, 42161 |
user | String | User wallet address |
filterState.address | String | Match Mining Address |
filterState.isEnded | Boolean | Has it already ended |
Return Values#
data.mining_list.list
Field Name | Type | Field Description |
---|---|---|
chainId | Number | Chain Id |
type | String | Liquidity pool type |
version | String | Mining Pool Version |
address | String | Liquidity pool address |
baseApy | BigNumber | Mining Base Token Apy |
quoteApy | BigNumber | Mining Quote Token Apy |
baseLpToken | Object | Base Lp token information |
quoteLpToken | Object | Quote Lp token information |
baseToken | Object | Base token information |
quoteToken | Object | Quote token information |
endBlock | Number | Block at which mining ends |
miningContractAddress | String | Mining Contract Address |
rewardTokenInfos | Object | Reward Base Lp Token Infos |
rewardTokenInfos.apy | BigNumber | Reward Base Token Apy |
rewardTokenInfos.rewardPerBlock | BigNumber | Number of rewards per block(Same contract method:6. getDlpMiningSpeed) |
rewardQuoteTokenInfos | Object | Reward Quote Lp Token Infos |
startBlock | Number | Mining start block |
title | String | Mining pool title |
platform | Number | LP TOKEN Source Platform |
{
"data": {
"mining_list": {
"list": [
{
"chainId": 56,
"type": "classical",
"version": null,
"address": "0xBe60d4c4250438344bEC816Ec2deC99925dEb4c7",
"baseApy": "0.122832",
"baseLpToken": {
"decimals": 18,
"id": "0xbeb34a9d23e0fe41d7b08ae3a4cbad9a63ce0aea",
"symbol": "BUSD LP",
"__typename": "MiningToken"
},
"baseToken": {
"decimals": 18,
"id": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"price": "0.998938",
"symbol": "BUSD",
"logoImg": "/l-RknfxPweyB8eXIbvoN0tw3-9srFNrL_DwSNtKHuQE/aHR0cHM6Ly9jZG4tbWVkaWEuZG9kb2V4LmlvL2VyYzIwL2h0dHBzX2Nkbl9tZWRpYV9kb2RvZXhfaW9fYnVzZF82MzllYjg3YWExX2J1c2RfNjM5ZWI4N2FhMV9lOWU1YWE0NzlmLnN2Zw.svg",
"__typename": "MiningToken"
},
"endBlock": "16354800000",
"miningContractAddress": "0x01f9BfAC04E6184e90bD7eaFD51999CE430Cc750",
"baseLpTokenMining": null,
"quoteLpTokenMining": null,
"quoteApy": "0.102283",
"quoteLpToken": {
"decimals": 18,
"id": "0x56ce908eebafea026ab047cee99a3aff039b4a33",
"symbol": "USDT LP",
"__typename": "MiningToken"
},
"quoteToken": {
"decimals": 18,
"id": "0x55d398326f99059ff775485246999027b3197955",
"price": "1.001",
"symbol": "USDT",
"logoImg": "/N7PStWWfFhcSW35BQ6LBHh_dyTNPBjkTKMtpNYypHRY/aHR0cHM6Ly9jZG4tbWVkaWEuZG9kb2V4LmlvL2VyYzIwL2h0dHBzX2Nkbl9tZWRpYV9kb2RvZXhfaW9fdXNkdF8xNTY0MWZjZDQwX3VzZHRfMTU2NDFmY2Q0MF9jZjI1ZTc5YTNjLnN2Zw.svg",
"__typename": "MiningToken"
},
"rewardTokenInfos": [
{
"apy": "0.122832",
"decimals": 18,
"endBlock": null,
"id": "0x67ee3cb086f8a16f34bee3ca72fad36f7db929e2",
"price": "0.126373",
"logoImg": "/xRCCHgApnhCQLVMQp0u7pwJRC21DrxpV4oftnwZbtf0/aHR0cHM6Ly9jZG4tbWVkaWEuZG9kb2V4LmlvL0RPRE9fNThlYzQ2NTEzZS9ET0RPXzU4ZWM0NjUxM2Uuc3Zn.svg",
"rewardNumIndex": null,
"rewardPerBlock": "219999999999999999",
"startBlock": null,
"symbol": "DODO",
"__typename": "MiningRewardToken"
}
],
"rewardQuoteTokenInfos": [
{
"apy": "0.102283",
"decimals": 18,
"endBlock": null,
"id": "0x67ee3cb086f8a16f34bee3ca72fad36f7db929e2",
"price": "0.126373",
"logoImg": "/xRCCHgApnhCQLVMQp0u7pwJRC21DrxpV4oftnwZbtf0/aHR0cHM6Ly9jZG4tbWVkaWEuZG9kb2V4LmlvL0RPRE9fNThlYzQ2NTEzZS9ET0RPXzU4ZWM0NjUxM2Uuc3Zn.svg",
"rewardNumIndex": null,
"rewardPerBlock": "219999999999999999",
"startBlock": null,
"symbol": "DODO",
"__typename": "MiningRewardToken"
}
],
"startBlock": "16354800",
"title": "BUSD-USDT LP",
"platform": null,
"__typename": "MiningMiningInfo"
}
],
"totalCount": 4,
"chains": [
"bsc",
"ethereum",
"polygon",
"arbitrum",
"okchain",
"aurora",
"avax",
"optimism",
"cfx",
"base",
"linea",
"scr",
"manta"
],
"__typename": "MiningMiningListInfo"
}
}
}
FAQ#
How to obtain the amount of reward tokens awaiting user claim?#
Use the getPendingReward method with the miningContractAddress to obtain the amount of tokens pending for claim. Rewards(USD) = getPendingReward('0xbeb34a9d23e0fe41d7b08ae3a4cbad9a63ce0aea', 'user address') / 10**rewardTokenInfos.decimals * rewardTokenInfos.price