Get LP token amounts in farms by account id
curl --request GET \
--url https://api.saucerswap.finance/farms/totals/{accountId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/farms/totals/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/farms/totals/{accountId}"
response = requests.get(url)
print(response.text)[
{
"farmId": 14,
"poolId": 35,
"accountId": "0.0.12345",
"timestamp": "1682469351.387795003",
"staked": "95533844"
}
]Farms
REST API: Farm LP totals by account
Retrieve the LP token amounts a Hedera account has staked in each SaucerSwap farm, with farm id, pool id, and the timestamp of the latest update.
GET
/
farms
/
totals
/
{accountId}
Get LP token amounts in farms by account id
curl --request GET \
--url https://api.saucerswap.finance/farms/totals/{accountId}const options = {method: 'GET'};
fetch('https://api.saucerswap.finance/farms/totals/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.saucerswap.finance/farms/totals/{accountId}"
response = requests.get(url)
print(response.text)[
{
"farmId": 14,
"poolId": 35,
"accountId": "0.0.12345",
"timestamp": "1682469351.387795003",
"staked": "95533844"
}
]Response
200 - application/json
Successful response
Was this page helpful?