curl --request GET \
--url https://api.saucerswap.finance/farms \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 14,
"poolId": 35,
"sauceEmissions": 2.3062,
"hbarEmissions": 0.0103,
"totalStaked": "955338445589"
}
]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.
curl --request GET \
--url https://api.saucerswap.finance/farms \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": 14,
"poolId": 35,
"sauceEmissions": 2.3062,
"hbarEmissions": 0.0103,
"totalStaked": "955338445589"
}
]Authorizations
API key provisioned by the SaucerSwap team. Request one from [email protected] and send it in the x-api-key header with every request.
Headers
API key for authentication. Request a key from [email protected].
"YOUR_API_KEY"
Response
Successful response
SaucerSwap farm id
14
SaucerSwap pool id
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.
2.3062
Whole HBAR allocated to this farm per minute if the farm has funded HBAR rewards
0.0103
Total staked LP amount in its smallest unit
"955338445589"
Was this page helpful?