SaucerSwap
AppMerchBlog
Developer
Developer
  • Developer Resources
  • REST API
    • Stats
    • Farms
    • Tokens
    • Pools (V1)
    • Pools and Positions (V2)
  • SaucerSwap V1
    • Swap Operations
      • Swap Quote
      • Swap HBAR for Tokens
      • Swap Tokens for Tokens
      • Swap Tokens for HBAR
      • Track Swap Events
    • Liquidity Operations
      • Fetch All Pools
      • Check if a Pool Exists
      • Pool Creation Fee
      • Create a New Pool
      • Get Pool Reserves
      • Track Pool Updates
      • Adding Liquidity
      • Removing Liquidity
  • SaucerSwap V2
    • Swap Operations
      • Swap Quote
      • Swap HBAR for Tokens
      • Swap Tokens for Tokens
      • Swap Tokens for HBAR
      • Track Swap Events
    • Liquidity Operations
      • Fetch all Pools
      • Check if a Pool Exists
      • Fetch Pool Token Ratio
      • Liquidity Position Fee
      • New Liquidity Position
      • Increasing Liquidity
      • Get User Positions
      • Claiming Fees
      • Decreasing Liquidity
  • Staking Operations
    • Single-Sided Staking
    • Yield Farming
  • WHBAR
    • Wrap HBAR for WHBAR
    • Unwrap WHBAR for HBAR
  • Contract Deployments
Powered by GitBook
On this page
  1. REST API

Farms

REST APIs for farms on SaucerSwap

PreviousStatsNextTokens

Last updated 9 months ago

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

Hedera Network
Base URL

Mainnet

Testnet

Previewnet

Not supported

https://api.saucerswap.finance/
https://test-api.saucerswap.finance/

Get list of active farms

get
Responses
200
Successful response
application/json
get
GET /farms HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "id": 14,
    "poolId": 35,
    "sauceEmissions": 2.3062,
    "hbarEmissions": 0.0103,
    "totalStaked": "955338445589"
  }
]

Get LP token amounts in farms by account id

get
Path parameters
accountIdstringRequiredExample: 0.0.12345
Responses
200
Successful response
application/json
get
GET /farms/totals/{accountId} HTTP/1.1
Host: 
Accept: */*
200

Successful response

[
  {
    "farmId": 14,
    "poolId": 35,
    "accountId": "0.0.12345",
    "timestamp": "1682469351.387795003",
    "staked": "95533844"
  }
]
  • GETGet list of active farms
  • GETGet LP token amounts in farms by account id