Get pool balances
GET /api/v1/liquidity/:chainId
Use this API to check balances of Meson liquidity pools.
Path Parameters
- chainId string requiredExamples:
The id for a network/chain Meson supports. See supported chains.
- Mainnet
- Testnet
Example:
eth
Example:
sepolia
Responses
- 200
- 400
- 404
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
result object[]
Array [id stringaddr stringpoolBalance string]
{
"result": [
{
"id": "string",
"addr": "string",
"poolBalance": "string"
}
]
}
Error
- application/json
- Schema
- Example (from schema)
Schema
error object
code int32message stringdata object
code string
{
"error": {
"code": -1,
"message": "[error_message]",
"data": {
"code": "[error_code]"
}
}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
error object
code int32message string
{
"error": {
"code": -1,
"message": "chain-not-found"
}
}
Loading...