Reporting
Pre-read
Review the Authentication Guide for the Alluvial API.
Alluvial's reporting API enables Platforms to request the ETH network rewards that their users have received. Below are two guides:
Platforms with omnibus account structure.
Platforms with segregated account structure.
Omnibus account structure
Platforms who support an omnibus structure should use the /eth/v0/rewards
endpoint. This will return data in a lots structure. Lots represent LsETH balance changes for a given period. Rewards can then be calculated for each period. Total rewards for a user is the sum of rewards for each lot
Below is an example request where a Platform wants to see the rewards for a wallet. The request body includes two objects that represents a change in balance (balance increased from 1 to 2 on 04-11-2024).
The first lot has a balance a
1
and the Platform wants to see the ETH network rewards received during the period from 2024-04-01 to 2024-04-10.The second lot has a balance a
2
and the Platform wants to see the ETH network rewards received during the period from 2024-04-01 to the current date.
Request
Response
The response shows that the total balance is 3 and the total rewards earned for the given lots.
Segregated account structure
Coming soon!
Staking Reward Rate
The Alluvial API provides a staking rewards rate (SRR), which is calculated as a 7 day trailing average.
To get SRR information, call the /protocol endpoint.
Request
Response
Based on providing a specific date of 2024-05-01, the returned SRR is 2.85%.
Last updated