JustLend DAO Docs
JustLend DAOAuditWhat's New
  • GETTING STARTED
    • Overview
    • Concepts
      • Supply
      • Borrow
      • Withdraw
      • Repay
      • Liquidations
      • Risks
      • Staked TRX
      • Energy Rental
    • Whitepaper
    • FAQs
      • ​​Wallet Connection Questions
      • More Questions
  • GOVERNANCE
    • JIPs
    • Tokenomics
    • Community Forum
  • DEVELOPERS
    • Contracts Overview
    • Supply and Borrow Market
      • SBM
      • Interest Rate Model
      • Governance
      • Price Oracle
      • Comptroller
    • Staked TRX
    • Energy Rental
    • Deployed Contracts
    • APIs
      • Supply and Borrow Market
        • Get Supply and Borrow Market Information
        • Get Account Information
        • Get Market Mining APY Information
        • Get User Supply Mining Reward Information
        • Get User Supply Mining Reward Distributions
      • Staked TRX and Energy Rental Market
        • Get Staked TRX and Energy Rental Markets Information
        • Get User Data of sTRX Liquidity Staking
        • Get User Data of Resource Rent
  • Resources
    • Community
      • Links
      • Wallet Integration Cooperation
    • Risk Warning
    • Audits
      • Supply & Borrow
      • Staked TRX
    • Terms of Service
      • Terms of Service
      • Privacy Policy
Powered by GitBook
On this page
  1. DEVELOPERS
  2. APIs
  3. Supply and Borrow Market

Get User Supply Mining Reward Distributions

PreviousGet User Supply Mining Reward InformationNextStaked TRX and Energy Rental Market

Last updated 2 months ago

Get User Supply Mining Reward Distributions

get

Query to get user's all reward distributions, including mining token address, if the mining reward has been claimed or not claimed, and the reward amount in the corresponding cycle. (To pass parameters to obtain specific information, please click 「Test」and fill in the address information in the Query parameters section.)

Path parameters
addressstringOptional

Query of the user address.

Query parameters
addressstringOptional

Query of the user address.

Responses
200
Return the user's all reward cycles, including those that have been claimed and those that have not been claimed. Filter out the cycles where claimed is false, that is, the unclaimed reward cycles.
application/json
400
Bad Request
application/json
get
GET /mining/distributions HTTP/1.1
Host: openapi.just.network
Accept: */*
{
  "code": 0,
  "data": {
    "Phase 22": {
      "tokenAddress": "TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn",
      "amount": ":0x6933158b3c05",
      "claimed": true,
      "index": ":0x0659",
      "merkleIndex": ":0x00",
      "proof": [
        [
          [
            ":0x6b734d20b9ca2a0dda57b184789dbb6df2d2993049a9365b6eafe932cd435255"
          ]
        ]
      ],
      "merkleRoot": ":0x3fdc21ab4fed9e13714fa852ff2e659f9e32af553f4426810ff75e38ccf17a97"
    }
  },
  "message": "SUCCESS"
}