Users

Retrieve lifetime earnings for a user on a specific vault

get

Get the lifetime earnings for a user on a specific vault, accounting for decimals and current price.

Path parameters
addressstringRequired

User address (Ethereum format).

Pattern: ^0x[a-fA-F0-9]{40}$
Query parameters
vaultAddressstringRequired

Vault contract address (Ethereum format).

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
200

Lifetime earnings for the user on the specified vault.

application/json
get
GET /api/user/{address}/lifetimeEarnings HTTP/1.1
Host: app.nest.credit
Accept: */*
{
  "lifetimeEarnings": 1
}