Wallet Operations
Endpoints for managing token distribution and consolidation across multiple Solana wallets.
Distribute (POST /api/wallets/distribute
)
POST /api/wallets/distribute
)Sends amounts of a specific token from a single source wallet to multiple recipient wallets efficiently, potentially bundling transfers into fewer transactions.
Request Endpoint: POST /api/wallets/distribute
Request Body: application/json
Success Response (200 OK): Returns signatures for the distribution transactions.
Common Errors:
500 Internal Server Error: Insufficient balance in the source wallet, invalid recipient address.
Consolidate Funds (POST /api/wallets/consolidate
)
POST /api/wallets/consolidate
)Gathers a specific token from multiple source wallets and sends the total to a single destination wallet.
Note: The exact behavior of minAmount
needs clarification. Assuming it's a minimum to pull from each source wallet:
Request Endpoint: POST /api/wallets/consolidate
Request Body: application/json
Success Response (200 OK): Returns signature(s) for the consolidation transaction(s).
Common Errors:
500 Internal Server Error: Failure accessing/transferring from a source wallet (e.g., insufficient funds, wallet closed).
Last updated