LP

Get an LP's swap fee earnings on a chain

Returns the swap fees an LP's wallet has earned to date on one chain, per venue and asset vault. Earnings are already part of the LP's principal, not a separate balance.

GET
/api/vaults/lp/earnings/{chainId}

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Path Parameters

chainId*integer

The chain's numeric id, for example 8453 for Base or 1151111081099710 for Solana. GET /api/vaults/chains lists them.

Query Parameters

wallet?string

The LP's wallet: a 0x address, or a base58 address on Solana. Without it on an EVM chain, the wallet of the request's caller token is read.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/vaults/lp/earnings/1"
{  "wallet": "0x1111111111111111111111111111111111111111",  "chainId": 8453,  "earnedToDate": [    {      "venueKind": "v4",      "venue": {        "program": "0x5Aef2c787AFC743D20FD632D66391B2ccd5c68C0",        "name": "Uniswap V4",        "logo": "/venue/uniswap.svg"      },      "vault": "0xb367A4306087d3981B38C032464cD7E3A7a03A4E",      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",      "amount": "2991",      "swaps": 3    }  ],  "complete": true}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}