Liquidity Pools & Tokens API
This endpoint provides detailed information on liquidity vaults (pools) and tokens.
Endpoint Details
URL:
GET https://charisma.rocks/api/v0/vaults
Method:
GET
Headers:
Content-Type: application/json
Body: None required.
Note: Only
GET
is allowed; other methods return a 405 Method Not Allowed.
Response Structure
The JSON response always has a success
flag and a data
object:
success: Boolean indicating if the request succeeded.
data: Object containing:
vaults: An array of liquidity vault objects.
tokens: An array of token metadata objects.
Vault Object Schema
Each vault object contains:
contractId (String): Unique vault contract identifier.
name (String): Name of the vault.
symbol (String): Vault token symbol.
decimals (Number): Decimal precision.
identifier (String): Short vault identifier.
description (String): Description of the vault.
image (String): URL to the vault’s image.
fee (Number): Fee (likely in basis points).
liquidity (Array): List of tokens that make up the vault:
Each liquidity item has:
contractId (String): Token contract ID.
identifier (String): Token identifier.
name (String): Token name.
symbol (String): Token symbol.
decimals (Number): Decimal precision.
description (String): Token description.
image (String): Token image URL.
reserves (Number): Token reserves in the pool.
supply (Number): Total supply of the vault token.
externalPoolId (String): Optional external identifier.
engineContractId (String): Optional engine contract ID.
Token Object Schema
Each token object includes:
contractId (String): Unique token contract ID.
name (String): Token name.
symbol (String): Token symbol.
decimals (Number): Decimal precision.
identifier (String): Short token identifier.
description (String): Token description.
image (String): URL to the token’s image.
Example Request
Example Response
Below is a truncated sample response:
Error Responses
405 Method Not Allowed
Returned if a method other than GET is used.
500 Internal Server Error
Returned when an error occurs while fetching data.
Last updated