Farms

REST APIs for farms on SaucerSwap

Access the SaucerSwap API using the following base URLs for testnet and mainnet environments:

Hedera Network
Base URL

Get list of active farms

get
Responses
curl -L \
  --url '/farms'
[
  {
    "id": 14,
    "poolId": 35,
    "sauceEmissions": 2.3062,
    "hbarEmissions": 0.0103,
    "totalStaked": "955338445589"
  }
]

Get LP token amounts in farms by account id

get
Path parameters
accountIdstringrequired
Example: 0.0.12345
Responses
curl -L \
  --url '/farms/totals/{accountId}'
[
  {
    "farmId": 14,
    "poolId": 35,
    "accountId": "0.0.12345",
    "timestamp": "1682469351.387795003",
    "staked": "95533844"
  }
]

Last updated