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: README.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ Solana Agent Kit provides a growing library of plugins that enhance your Solana
16
16
17
17
* Solana Transfer - Transfer Solana tokens between the agent's wallet and the destination wallet
18
18
* Solana Ultra - Swap Solana tokens using Jupiter Ultra API with automatic slippage, priority fees, and transaction landing
19
+
* Solana DFlow Swap - Fast token swaps using DFlow API with platform fees
19
20
* Jupiter Trigger - Create, cancel, and manage limit orders using Jupiter Trigger API
20
21
* Jupiter Recurring - Create, cancel, and manage DCA orders using Jupiter Recurring API
21
22
* Jupiter Holdings - Get token holdings with USD values for any wallet
@@ -25,6 +26,7 @@ Solana Agent Kit provides a growing library of plugins that enhance your Solana
25
26
* Privy Ultra - Swap tokens using Jupiter Ultra with Privy delegated wallets
26
27
* Privy Trigger - Create and manage limit orders with Privy delegated wallets
27
28
* Privy Recurring - Create and manage DCA orders with Privy delegated wallets
29
+
* Privy DFlow Swap - Fast token swaps using DFlow API with Privy delegated wallets and platform fees
28
30
* Privy Wallet Address - Get the wallet address of a Privy delegated wallet
29
31
* Privy Create User - Create a new Privy user with a linked Telegram account (for bot-first flows)
30
32
* Privy Create Wallet - Create a Solana wallet for a Privy user with optional bot delegation
@@ -98,6 +100,33 @@ To collect fees, you need a Jupiter referral account. Create one at [referral.ju
98
100
**Gasless Transactions:**
99
101
By default, Jupiter Ultra provides gasless swaps when the user has < 0.01 SOL and trade is > $10. However, this **doesn't work with referral fees**. To enable gasless + referral fees, configure `payer_private_key` - this wallet will pay all gas fees and you recoup costs via referral fees.
100
102
103
+
### Solana DFlow Swap
104
+
105
+
This plugin enables Solana Agent to swap tokens using DFlow's Swap API with a Solana keypair. DFlow offers faster swaps compared to Jupiter Ultra with competitive rates and supports platform fees for monetization.
"referral_account": "your-referral-account", # Optional - referral account for tracking
115
+
"payer_private_key": "payer-private-key", # Optional - for gasless/sponsored transactions
116
+
"rpc_url": "https://api.mainnet-beta.solana.com", # Optional - RPC URL (defaults to mainnet)
117
+
},
118
+
},
119
+
}
120
+
```
121
+
122
+
**Features:**
123
+
-**Fast Swaps**: DFlow typically executes faster than Jupiter Ultra
124
+
-**Platform Fees**: Collect fees on swaps (in basis points) paid to your fee account
125
+
-**Gasless Transactions**: Optionally sponsor gas fees for users via `payer_private_key`
126
+
127
+
**Platform Fee Setup:**
128
+
To collect platform fees, you need to create a token account for the output token and provide it as `fee_account`. The `platform_fee_bps` specifies the fee amount (e.g., 50 = 0.5%).
129
+
101
130
### Jupiter Trigger
102
131
103
132
This plugin enables Solana Agent to create, cancel, and manage limit orders using Jupiter's Trigger API. It's a smart tool that handles the full lifecycle of limit orders with a single action parameter.
@@ -333,6 +362,35 @@ config = {
333
362
334
363
**Actions:** Same as Jupiter Recurring (create, cancel, list)
335
364
365
+
### Privy DFlow Swap
366
+
367
+
This plugin enables Solana Agent to swap tokens using DFlow's Swap API with Privy delegated wallets. DFlow offers faster swaps compared to Jupiter Ultra with competitive rates and supports platform fees for monetization.
368
+
369
+
```python
370
+
config = {
371
+
"tools": {
372
+
"privy_dflow_swap": {
373
+
"app_id": "your-privy-app-id", # Required - your Privy application ID
374
+
"app_secret": "your-privy-app-secret", # Required - your Privy application secret
"referral_account": "your-referral-account", # Optional - referral account for tracking
379
+
"payer_private_key": "payer-private-key", # Optional - for gasless/sponsored transactions
380
+
},
381
+
},
382
+
}
383
+
```
384
+
385
+
**Features:**
386
+
-**Fast Swaps**: DFlow typically executes faster than Jupiter Ultra
387
+
-**Platform Fees**: Collect fees on swaps (in basis points) paid to your fee account
388
+
-**Privy Delegated Wallets**: Seamless user experience with embedded wallets
389
+
-**Gasless Transactions**: Optionally sponsor gas fees for users via `payer_private_key`
390
+
391
+
**Platform Fee Setup:**
392
+
To collect platform fees, you need to create a token account for the output token and provide it as `fee_account`. The `platform_fee_bps` specifies the fee amount (e.g., 50 = 0.5%).
393
+
336
394
### Privy Wallet Address
337
395
338
396
This plugin enables Solana Agent to get the wallet address of a Privy delegated wallet.
0 commit comments