API

The JUST API provides three groups of endpoints, relating to Supply and Borrow Market (SBM), Staked TRX Market, and the Energy Rental Market.

Base URL

The JustLend Protocol API is decentralized and hosted on IPFS, mapping the following DNS names to their respective gateways:

Mainnet: https://openapi.just.network

Supply and Borrow Market

Get Supply and Borrow Market Information

Return the list of market information.

https://openapi.just.network/lend/jtoken

Try this endpoint in your browser 🔗

Query Parameters

No Parameters

Get Account Information

Return the list of user account information.

https://openapi.just.network/lend/account

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Tpye

address

string

query of the addresses list

minBorrowValueInTrx

string

query the minimum value of borrowed asset in TRX

mathHealth

string

query the max health level

pageNo

integer

page number

pageSize

integer

page size, maximum 1000

Get User Supply Mining Reward

Returns the user's supply mining reward information.

https://openapi.just.network/mining/reward?address=

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Tpye

address

string

query of the user address

Get User Supply Mining Reward Distributions

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.

https://openapi.just.network/mining/distributions?address=

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Tpye

address

string

query of the user address

Get Reward Pool APY Information

Return the APY information of each pool's USDD rewards.

https://openapi.just.network/mining/apy

Try this endpoint in your browser 🔗

Query Parameters

No Parameters.

Staked TRX Market

Get Staked TRX and Energy Rental Markets Information

Return the sTRX staking and energy rental markets information.

https://openapi.just.network/lend/strx

Try this endpoint in your browser 🔗

Query Parameters

No Parameters

Get user data of sTRX liquidity staking

Returns the list of user sTRX staking information.

https://openapi.just.network/lend/strxStake/account

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Tpye

address

string

query of the addresses list

pageNo

integer

page number, starting from 1

pageSize

integer

page size, maximum 1000

minStrxBalance

string

minimum amount of sTRX held

Energy Rental Market

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

Return the list of user energy rental information.

https://openapi.just.network/lend/rentResource/account

Try this endpoint in your browser 🔗

Query Parameters

Parameter
Tpye

address

string

query of the addresses list

pageNo

integer

page number, starting from 1

pageSize

integer

page size, maximum 1000

minStrxBalance

string

minimum amount of sTRX held

maxRemainingRentAmount

string

maximum remaining rent

Last updated