Skip to content

Commit 228384d

Browse files
v14.1.0 (#31)
1 parent dd2e732 commit 228384d

36 files changed

+2676
-363
lines changed

.coverage

0 Bytes
Binary file not shown.

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Solana Agent Kit provides a growing library of plugins that enhance your Solana
1616

1717
* Solana Transfer - Transfer Solana tokens between the agent's wallet and the destination wallet
1818
* 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
1920
* Jupiter Trigger - Create, cancel, and manage limit orders using Jupiter Trigger API
2021
* Jupiter Recurring - Create, cancel, and manage DCA orders using Jupiter Recurring API
2122
* 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
2526
* Privy Ultra - Swap tokens using Jupiter Ultra with Privy delegated wallets
2627
* Privy Trigger - Create and manage limit orders with Privy delegated wallets
2728
* 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
2830
* Privy Wallet Address - Get the wallet address of a Privy delegated wallet
2931
* Privy Create User - Create a new Privy user with a linked Telegram account (for bot-first flows)
3032
* 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
98100
**Gasless Transactions:**
99101
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.
100102

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.
106+
107+
```python
108+
config = {
109+
"tools": {
110+
"solana_dflow_swap": {
111+
"private_key": "my-private-key", # Required - base58 string
112+
"platform_fee_bps": 50, # Optional - platform fee in basis points (e.g., 50 = 0.5%)
113+
"fee_account": "your-fee-token-account", # Optional - token account to receive platform fees
114+
"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+
101130
### Jupiter Trigger
102131

103132
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 = {
333362

334363
**Actions:** Same as Jupiter Recurring (create, cancel, list)
335364

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
375+
"signing_key": "wallet-auth:your-signing-key", # Required - your Privy wallet authorization signing key
376+
"platform_fee_bps": 50, # Optional - platform fee in basis points (e.g., 50 = 0.5%)
377+
"fee_account": "your-fee-token-account", # Optional - token account to receive platform fees
378+
"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+
336394
### Privy Wallet Address
337395

338396
This plugin enables Solana Agent to get the wallet address of a Privy delegated wallet.

0 commit comments

Comments
 (0)