Users
Get the lifetime earnings for a user on a specific vault, accounting for decimals and current price.
Path parameters
addressstringRequiredPattern:
User address (Ethereum format).
^0x[a-fA-F0-9]{40}$
Query parameters
vaultAddressstringRequiredPattern:
Vault contract address (Ethereum format).
^0x[a-fA-F0-9]{40}$
Responses
200
Lifetime earnings for the user on the specified vault.
application/json
400
Invalid parameters.
404
Vault not found.
500
Server error.
get
GET /api/user/{address}/lifetimeEarnings HTTP/1.1
Host: app.nest.credit
Accept: */*
{
"lifetimeEarnings": 1
}