You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/swarms/wallet/api.md
+323-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Swarms Wallet API Documentation
1
+
# swarms Wallet API Documentation
2
2
3
-
This documentation covers the Swarms Wallet API routes for managing wallets, sending tokens, and checking transactions in the Swarms Platform.
3
+
This documentation covers the swarms Wallet API routes for managing wallets, sending tokens, and checking transactions in the swarms Platform.
4
4
5
5
## Authentication
6
6
@@ -34,7 +34,7 @@ POST https://swarms.world/api/solana/generate-wallet
34
34
```
35
35
36
36
### Send Tokens
37
-
Sends SWARMS tokens with automatic tax handling.
37
+
Sends swarms tokens with automatic tax handling.
38
38
39
39
```http
40
40
POST https://swarms.world/api/solana/send-tokens
@@ -163,7 +163,7 @@ GET https://swarms.world/api/solana/get-metrics
163
163
## Transaction Details
164
164
165
165
- Default SOL fee: 0.009 SOL
166
-
-SWARMS token tax: 2% from sender + 2% from sent amount
166
+
-swarms token tax: 2% from sender + 2% from sent amount
167
167
- All taxes are sent to the DAO treasury
168
168
- Token accounts are automatically created for new recipients
169
169
- Transactions use 'processed' commitment level
@@ -176,3 +176,322 @@ GET https://swarms.world/api/solana/get-metrics
176
176
- Token accounts are automatically created for recipients if they don't exist
177
177
- All transactions include automatic tax handling for the DAO treasury
178
178
- Compute budget and priority fees are automatically managed for optimal transaction processing
179
+
180
+
181
+
182
+
## Examples
183
+
184
+
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.
185
+
186
+
---
187
+
188
+
## Python (Using `requests`)
189
+
190
+
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!
0 commit comments