Solana AI Agent
Project description
Solana Swarm
This CLI tool is a stateful AI agent that can perform actions on the Solana blockchain (devnet).
Actions:
- Create new accounts
- Get balances of accounts
- Transfer between accounts
Test Flow on Devnet:
- Install OpenAI API KEY for
zsh
shell:echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
pip install solana-swarm
solana-swarm
- Tell the AI to:
create 2 new accounts
- Go to https://faucet.solana.com/ and airdrop 0.5 SOL into account 1 (cut and paste public key from CLI into site)
- Tell the AI to:
Check the balance of account 1
- should be 0.5 SOL - Tell the AI to:
Transfer 0.25 SOL from account 1 to account 2
- should complete and show new balances - NOTE: wallets are not saved between chats so if you
exit
you will lose access to the wallets!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
solana_swarm-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for solana_swarm-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d4d9ba0973d36869acaa320463e546a20c078d44a505c5212fe6207a88f1ed5 |
|
MD5 | c6dc599cbd7dfe39ea450c9ffb1bc46b |
|
BLAKE2b-256 | 34c15193894a15bced7bc46c9d3252aa68c01ea95a7c943f267bc4fe003c5df5 |