Nano Banana Pro
Agent skill for nano-banana-pro
This repository contains a Python script for executing Jupiter swaps on Solana with dynamic priority fees. When working on the project interactively with an agent (e.g. the Codex CLI) please follow the guidelines below for safe development and testing.
Sign in to like and favorite skills
This repository contains a Python script for executing Jupiter swaps on Solana with dynamic priority fees. When working on the project interactively with an agent (e.g. the Codex CLI) please follow the guidelines below for safe development and testing.
If you update dependencies:
pip install solana aiohttp solders.Set up critical parameters in the script:
PRIVATE_KEY = "YOUR_TEST_WALLET_KEY" # Use test wallet only RPC_ENDPOINT = "YOUR_CHAINSTACK_NODE" # Trader node recommended AMOUNT = 1000000 # 0.001 SOL (minimal test amount) AUTO_MULTIPLIER = 1.1 # 10% bump to median fee SLIPPAGE_BPS = 1000 # 10% slippage
Never commit private keys to version control.
The script calculates priority fees dynamically:
Monitor fee calculations to avoid excessive costs.
Choose appropriate node type:
| Node Type | Use Case | Benefits |
|---|---|---|
| Trader Node | Production swaps | Lower latency |
| Regular Node | Development | Cost-effective |
Follow this safe testing sequence:
Common token mints:
So11111111111111111111111111111111111111112EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBAlways verify addresses from official sources.
The script handles various errors:
Add additional error handling as needed.
Before running swaps:
"Insufficient lamports"
"Transaction simulation failed"
"RPC timeout"
Track transactions:
https://solscan.io/tx/{signature}# Run the swap python jupiter_swap.py # Test with different parameters # Edit script constants first python jupiter_swap.py
Following these practices ensures safe Jupiter swap execution, prevents excessive fees, and maintains wallet security. Always test with minimal amounts and monitor priority fees carefully during development.