Mining List

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 nameType of parameterDescription
chainIdsArrayChain IDs: 1, 56, 137, 42161
userStringUser wallet address
filterState.addressStringMatch Mining Address
filterState.isEndedBooleanHas it already ended

Return Values#

data.mining_list.list

Field NameTypeField Description
chainIdNumberChain Id
typeStringLiquidity pool type
versionStringMining Pool Version
addressStringLiquidity pool address
baseApyBigNumberMining Base Token Apy
quoteApyBigNumberMining Quote Token Apy
baseLpTokenObjectBase Lp token information
quoteLpTokenObjectQuote Lp token information
baseTokenObjectBase token information
quoteTokenObjectQuote token information
endBlockNumberBlock at which mining ends
miningContractAddressStringMining Contract Address
rewardTokenInfosObjectReward Base Lp Token Infos
rewardTokenInfos.apyBigNumberReward Base Token Apy
rewardTokenInfos.rewardPerBlockBigNumber

Number of rewards per block(Same contract method:6. getDlpMiningSpeed)

rewardQuoteTokenInfosObjectReward Quote Lp Token Infos
startBlockNumberMining start block
titleStringMining pool title
platformNumberLP 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