API

The JUST API provides two groups of endpoints.

Market Data - Endpoints relating to Supply and Borrow Markets, sTRX Staking Markets

Activity - Endpoints relating to user interactions with Supply and Borrow Markets, sTRX Staking Markets and Energy Rental Markets

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 Testnet: https://testopenapi.just.network

Endpoint Details

Market Endpoints

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 sTRX Staking 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

Activity

Get Account Information

Return the list of user account information.

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

Try this endpoint in your browser 🔗

Query Parameters

ParameterTpye

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 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

ParameterTpye

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

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

ParameterTpye

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

Supply Mining

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

ParameterTpye

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

ParameterTpye

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

Last updated