Crescent Docs
Search
⌃K

API Reference

Params

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/params
Example Response
{
"params": {
"fee_collector": "cre1lsvtflq2gau8ha7zvlethfy85qus59eserphyhc3tumua7upx6eqckll2q",
"rewards_auction_duration": "120s",
"liquid_farms": [
{
"pool_id": "1",
"min_farm_amount": "1",
"min_bid_amount": "1",
"fee_rate": "0.000000000000000000"
}
]
}
}

LiquidFarms

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms
Example Response
{
"liquid_farms": [
{
"pool_id": "1",
"liquid_farm_reserve_address": "cre1zyyf855slxure4c8dr06p00qjnkem95d2lgv8wgvry2rt437x6ts363hdt",
"lf_coin_denom": "lf1",
"lf_coin_supply": "500000000000",
"pool_coin_denom": "pool1",
"pool_coin_farming_amount": "500000000000",
"min_farm_amount": "1",
"min_bid_amount": "1"
}
]
}

LiquidFarm

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1
Example Response
{
"liquid_farm": {
"pool_id": "1",
"liquid_farm_reserve_address": "cre1zyyf855slxure4c8dr06p00qjnkem95d2lgv8wgvry2rt437x6ts363hdt",
"lf_coin_denom": "lf1",
"lf_coin_supply": "500000000000",
"pool_coin_denom": "pool1",
"pool_coin_farming_amount": "500000000000",
"min_farm_amount": "1",
"min_bid_amount": "1"
}
}

RewardsAuctions

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/rewards_auctions
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/rewards_auctions?status=AUCTION_STATUS_STARTED
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/rewards_auctions?status=AUCTION_STATUS_FINISHED
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/rewards_auctions?status=AUCTION_STATUS_SKIPPED
Example Response
{
"rewards_auctions": [
{
"id": "1",
"pool_id": "1",
"bidding_coin_denom": "pool1",
"paying_reserve_address": "cre1h72q3pkvsz537kj08hyv20tun3apampxhpgad97t3ls47nukgtxq4nw9fg",
"start_time": "2022-09-27T06:06:52.627872Z",
"end_time": "2022-09-27T06:08:52.627872Z",
"status": "AUCTION_STATUS_STARTED",
"winner": "",
"winning_amount": {
"denom": "",
"amount": "0"
},
"rewards": [
{
"denom": "stake",
"amount": "25369"
}
],
"fees": [],
"fee_rate": "0.000000000000000000"
}
]
}

RewardsAuction

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/rewards_auctions/1
Example Response
{
"rewards_auction": {
"id": "1",
"pool_id": "1",
"bidding_coin_denom": "pool1",
"paying_reserve_address": "cre1h72q3pkvsz537kj08hyv20tun3apampxhpgad97t3ls47nukgtxq4nw9fg",
"start_time": "2022-08-05T08:56:22.237454Z",
"end_time": "2022-08-06T08:56:22.237454Z",
"status": "AUCTION_STATUS_FINISHED",
"winner": "",
"winning_amount": {
"denom": "",
"amount": "0"
},
"rewards": [
{
"denom": "stake",
"amount": "25369"
}
],
"fees": [],
"fee_rate": "0.000000000000000000"
}
}

Bids

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/bids
Example Response
{
"bids": [
{
"pool_id": "1",
"bidder": "cre1zaavvzxez0elundtn32qnk9lkm8kmcszxclz6p",
"amount": {
"denom": "pool1",
"amount": "1000000000"
}
}
]
}

Rewards

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/rewards
Example Response
{
"rewards": [
{
"denom": "stake",
"amount": "1903"
}
]
}

ExchangeRate

Example Request
http://localhost:1317/crescent/liquidfarming/v1beta1/liquidfarms/1/exchange_rate
Example Response
{
"exchange_rate": {
"mint_rate": "1.000000000000000000",
"burn_rate": "1.000000000000000000"
}
}