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. Staked TRX and Energy Rental Market

Get User Data of Resource Rent

PreviousGet User Data of sTRX Liquidity StakingNextCommunity

Last updated 2 months ago

Get user data of resource rent (only supports Energy Rental currently)

get

Query to get the list of user energy rental information.

Query parameters
addressesstringOptional

Query of the user addresses. (To query multiple addresses at the same time, please use ‘,’ to separate multiple addresses.)

pageNointeger · int64Optional

Page number.

pageSizeinteger · int64Optional

Page size, maximum 1000.

minStrxBalancestringOptional

Minimum amount of sTRX held.

maxRemainingRentAmountstringOptional

Maximum remaining rent amount.

Responses
200
Returns the list of user energy rental information.
application/json
400
Bad Request
application/json
get
GET /lend/rentResource/account HTTP/1.1
Host: openapi.just.network
Accept: */*
{
  "code": 0,
  "data": {
    "totalPage": 1,
    "list": [
      {
        "rentRemainAmount": 0,
        "receiver": "TWdWEHRLPBVGsXhwjSUv45XwnsfUHXydJa",
        "delegatedAmount": 0,
        "rentAmountPerDay": 0,
        "rentType": "Energy",
        "renter": "TWdWEHRLPBVGsXhwjSUv45XwnsfUHXydJa"
      }
    ],
    "totalCount": 1
  },
  "message": "SUCCESS"
}