Overview
This node interacts with the Meteora decentralized liquidity management protocol on the Solana blockchain. Specifically, the 'Close all positions' operation closes all open positions in a specified Meteora pool. This is useful for users who want to exit all their liquidity positions in a pool at once, for example, to realize profits or stop exposure to market changes.
Use Case Examples
- A user wants to close all their liquidity positions in a Meteora pool to withdraw their funds.
- A trader decides to exit all positions in a pool due to market volatility and uses this operation to close them efficiently.
Properties
| Name | Meaning |
|---|---|
| Pool Address | The Meteora pool address to close all positions for, specified as a string. |
Output
JSON
index- Each element in the output array represents the result of closing a position, including transaction details and status.
Dependencies
- Requires Solana blockchain connection credentials including RPC URL, WebSocket endpoint, and a private key for signing transactions.
Troubleshooting
- Ensure the provided pool address is valid and corresponds to an existing Meteora pool on Solana.
- Verify that the Solana API credentials (RPC URL, WebSocket endpoint, private key) are correct and have sufficient permissions.
- Common errors may include transaction failures due to insufficient funds or network issues; retrying or checking wallet balance may help.
Links
- Meteora Documentation - Official documentation for the Meteora protocol, useful for understanding pool operations and API usage.
- Solana Developer Resources - Resources for developing on the Solana blockchain, including connection setup and key management.