Skip to main content

Get On-chain Yields Locked Subscription Preview (USER_DATA)

API Description

Get On-chain Yields Locked Subscription Preview

HTTP Request

GET /sapi/v1/onchain-yields/locked/subscriptionPreview

Request Weight(IP)

50

Request Parameters

NameTypeMandatoryDescription
projectIdSTRINGYES
amountDECIMALYES
autoSubscribeBOOLEANNOtrue or false, default true.
recvWindowLONGNO
timestampLONGYES

Response Example

 {   
"rewardAsset":"SOLV", //Earned asset
"totalRewardAmt": "5.17181528", //Earned amount total in locked period

// Response when type is "Stake A Earn A":
"nextPay": "1.29295383", //Next estimated rewards payment
"nextPayDate": "1646697600000", //Next rewards payment date

// Response when type is "Stake A Earn C":
"rewardsPayDate": "1646697600000", //Rewards payment date

"valueDate": "1646697600000",
"rewardsEndDate": "1651449600000", //Rewards accrual end date
"deliverDate": "1651536000000", //Redemption arrival time(if auto-subscribe is true, not response this one)
"nextSubscriptionDate": "1651536000000" //Response if autoSubscribe is true
}