GET
/
apps
/
earnings
Get affiliate earnings.
curl --request GET \
  --url https://{environment}.garden.finance/v2/apps/earnings \
  --header 'garden-app-id: <api-key>'
{
  "status": "Ok",
  "result": [
    {
      "total_earnings": "15075000000",
      "total_earnings_usd": "15075",
      "affiliate": "0x004Cc75ACF4132Fc08cB6a252E767804F303F729",
      "asset": "ethereum:usdc",
      "token_address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "claim_amount": "5075000000",
      "claim_amount_usd": "5075",
      "claim_signature": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b",
      "claim_contract": "0x5EbEC4D8DA437b2BAD656D43d40fE412bA5D217a"
    },
    {
      "total_earnings": "30000000",
      "total_earnings_usd": "30000",
      "affiliate": "0x004Cc75ACF4132Fc08cB6a252E767804F303F729",
      "asset": "ethereum:cbbtc",
      "token_address": "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf"
    }
  ]
}
Get affiliate earnings and claimable amounts for different assets.

Authorizations

garden-app-id
string
header
required

If you do not yet have an app ID, please follow these steps.

Response

200 - application/json

List of affiliate earnings.

result
object[]
required
status
enum<string>
Available options:
Ok,
Error
error
string | null