This documentation covers the Swarms Wallet API routes for managing wallets, sending tokens, and checking transactions in the Swarms Platform.
This documentation covers the swarms Wallet API routes for managing wallets, sending tokens, and checking transactions in the swarms Platform.
## Authentication
## Authentication
@ -34,7 +34,7 @@ POST https://swarms.world/api/solana/generate-wallet
```
```
### Send Tokens
### Send Tokens
Sends SWARMS tokens with automatic tax handling.
Sends swarms tokens with automatic tax handling.
```http
```http
POST https://swarms.world/api/solana/send-tokens
POST https://swarms.world/api/solana/send-tokens
@ -163,7 +163,7 @@ GET https://swarms.world/api/solana/get-metrics
## Transaction Details
## Transaction Details
- Default SOL fee: 0.009 SOL
- Default SOL fee: 0.009 SOL
- SWARMS token tax: 2% from sender + 2% from sent amount
- swarms token tax: 2% from sender + 2% from sent amount
- All taxes are sent to the DAO treasury
- All taxes are sent to the DAO treasury
- Token accounts are automatically created for new recipients
- Token accounts are automatically created for new recipients
- Transactions use 'processed' commitment level
- Transactions use 'processed' commitment level
@ -176,3 +176,322 @@ GET https://swarms.world/api/solana/get-metrics
- Token accounts are automatically created for recipients if they don't exist
- Token accounts are automatically created for recipients if they don't exist
- All transactions include automatic tax handling for the DAO treasury
- All transactions include automatic tax handling for the DAO treasury
- Compute budget and priority fees are automatically managed for optimal transaction processing
- Compute budget and priority fees are automatically managed for optimal transaction processing
## Examples
Below are code examples in several languages that demonstrate how to use the swarms Wallet API endpoints. In these examples, replace `your_api_key_here` with your actual API key, and update any parameters as needed.
---
## Python (Using `requests`)
First, install the library if you haven’t already:
These examples illustrate how to authenticate using the API key and perform various operations such as generating a wallet, sending tokens, checking receipts, and retrieving metrics. You can adapt these examples to other languages or frameworks as needed. Enjoy integrating with the swarms Wallet API!