API Documentation
If you'd prefer to use our existing API (offered at best effort) instead of building your own, you can use the endpoints shown below.
The API for WAX Mainnet is:
All endpoints return data in JSON format.
Quick Links
Endpoint List
/get-farm
Method: POST
Returns details about a single token farm
farm_name
string
The 1 to 12 character farm name to get the details for
/get-farms
Method: POST
Returns data for multiple farms
page
int (optional)
Which page of results you want to fetch. Default is 1
limit
int (optional)
The amount of farms you want to fetch. Default: 100, Min: 1, Max: 100
sort
string (optional)
How you want the farms sorted when they are returned. Options are newest
and oldest
. Default is newest
creator
string (optional)
The WAX address of the account that created the farms.
original_creator
string (optional)
The WAX address of the original creator of the farm, this is applicable if you are using our partner contract. Your partner contract would be creator
since it acts as a proxy, but original_creator
would be the end user who set up the farm on your platform.
/get-stakers
Method: POST
Returns a list of stakers (leaderboard) for a single farm. Sorted by most staked to least staked.
page
int (optional)
Which page of results you want to fetch. Default is 1
limit
int (optional)
The amount of rows you want to fetch. Default: 100, Min: 1, Max: 100
farm_name
string
The 1-12 character name of the farm you want to get the stakers for
/staked-only
Method: POST
Returns a list of farms that a user is staking in.
page
int (optional)
Which page of results you want to fetch. Default is 1
limit
int (optional)
The amount of rows you want to fetch. Default: 100, Min: 1, Max: 100
sort
string (optional)
How you want the farms sorted when they are returned. Options are newest
and oldest
. Default is newest
.
staker
string
The WAX address of the staker to get staked farms for.
Last updated