Get list of active farms
curl --request GET \
--url https://api.saucerswap.finance/farmsconst options = {method: 'GET'};
fetch('https://api.saucerswap.finance/farms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/farms"
response = requests.get(url)
print(response.text)[
{
"id": 14,
"poolId": 35,
"sauceEmissions": 2.3062,
"hbarEmissions": 0.0103,
"totalStaked": "955338445589"
}
]Farms
REST API: List active farms
List all active SaucerSwap yield farms with farm and pool ids, SAUCE and HBAR emission rates per minute, and total staked LP token amounts per farm.
GET
/
farms
Get list of active farms
curl --request GET \
--url https://api.saucerswap.finance/farmsconst options = {method: 'GET'};
fetch('https://api.saucerswap.finance/farms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/farms"
response = requests.get(url)
print(response.text)[
{
"id": 14,
"poolId": 35,
"sauceEmissions": 2.3062,
"hbarEmissions": 0.0103,
"totalStaked": "955338445589"
}
]Response
200 - application/json
Successful response
SaucerSwap farm id
Example:
14
SaucerSwap pool id
Example:
35
Whole SAUCE allocated to this farm per minute, excluding the separate Masterchef devcut. Divide by 60 for SAUCE/sec. This is a per-farm rate, not the protocol-wide base emission rate.
Example:
2.3062
Whole HBAR allocated to this farm per minute if the farm has funded HBAR rewards
Example:
0.0103
Total staked LP amount in its smallest unit
Example:
"955338445589"
Was this page helpful?