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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -365,13 +365,16 @@ config = {
365
365
366
366
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.
367
367
368
+
Transactions are signed via Privy and sent via your configured RPC (Helius recommended) for reliable blockhash handling and priority fees.
369
+
368
370
```python
369
371
config = {
370
372
"tools": {
371
373
"privy_dflow_swap": {
372
374
"app_id": "your-privy-app-id", # Required - your Privy application ID
373
375
"app_secret": "your-privy-app-secret", # Required - your Privy application secret
-**Gasless Transactions**: Optionally sponsor gas fees for users via `payer_private_key`
388
392
393
+
**RPC URL (Required):**
394
+
Helius RPC is strongly recommended (`https://mainnet.helius-rpc.com/?api-key=YOUR_KEY`). Helius provides priority fee estimation and better blockhash handling, which significantly improves transaction success rates. Get a free API key at [helius.dev](https://helius.dev).
395
+
389
396
**Platform Fee Setup:**
390
397
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%).
0 commit comments