CIAN Yield Layer Points API
Introduction
This API specification aims to enable DeFi projects to directly allocate points to this protocol’s address, eliminating the need to distribute points to individual users. By doing so, this protocol can better manage and unify the recording of points accumulation. Project teams must implement at least one of the two available query methods.
Query Methods
Method 1: Fixed Interval Points Query
Request Method
GET /points?address={address}
(just an example)
Request Parameters
address
string
Yes
User wallet address
Response Example
or if you have several points to distribute,
Description
The interval must be no longer than one day.
Method 2: Timestamp-Based Points Query
Request Method
GET /points?address={address}×tamp={timestamp}
(just an example)
Request Parameters
address
string
Yes
User wallet address
timestamp
int
Yes
Query timestamp (in seconds)
Response Example
Description
The responses should vary from different timestamps input.
Additional
The detailed info is not necessary, only the total points are needed.
Last updated
Was this helpful?