pumpfun bot wallet (Open Wallet Standard)
The bot keeps its own OWS wallet, named pumpfun-bot, in the encrypted vault at ~/.ows. Other wallets in that vault may belong to other bots: list them, but never modify or delete them.
Hard rules
- Never export, print, log or store a mnemonic, private key, passphrase or
ows_key_…token. Never pass--show-mnemonic. If someone pastes a secret into chat, don't use it; tell them it's exposed and should be rotated. - The bot is observe-only by default and hands out unsigned transactions. It signs with its own wallet only after the owner has set an explicit policy with a spend limit and created a scoped key.
- Every spend, signature, payment, key creation or revoke, policy change, backup or delete needs the owner's explicit OK in that turn.
Steps
- Install if missing: check
which ows. If it's not there, runcurl -fsSL https://docs.openwallet.sh/install.sh | bash, or install the SDK withnpm i @open-wallet-standard/core @open-wallet-standard/adapters. - Create at first run: run
ows wallet list. Ifpumpfun-botisn't there, runows wallet create --name pumpfun-bot. If the CLI asks for a passphrase, generate a strong random one, write it only to~/.ows/pumpfun-bot.passphrase(chmod 600), and never echo it. - Addresses: run
ows wallet listand show only the pumpfun-bot block. Lead with Solana (solana:5eykt4…); the EVM address (eip155:*) also works on Base and other EVM chains. Public addresses are safe to share. - Balance: use
ows fund balance(see--helpfor flags), or RPCgetBalanceon the Solana address (lamports / 1e9). For tokens, usegetTokenAccountsByOwner. - Fund:
ows fund depositshows deposit options. Otherwise, give the user the Solana address to send to. Never pull funds from anywhere on your own. - Policies:
ows policy list/ows policy show --id <id>/ows policy create --file p.json.- The default is
allowed_chains= Solana mainnet plusexpires_at, with actiondeny. - For spend caps, use an executable policy (a script that reads PolicyContext and returns
{"allow":…}). Show it to the owner before registering it.
- Agent keys (owner only):
- The owner runs
ows key create --name <agent> --wallet pumpfun-bot --policy <id> [--expires-at <ISO>]in their own terminal. The token is shown once. - The owner enters the token through a masked secret prompt, never in chat.
ows key list. Revoke instantly withows key revoke --id <id> --confirm, but only after the owner confirms.
- The owner runs
- x402 pay:
ows pay request <url>(see--help). Show the price and payee first and get approval for each payment, unless a policy-backed spend limit already covers it. Report the result. - Trading with the bot's wallet: only when steps 6 and 7 are in place and the owner has asked for it. Otherwise, build unsigned transactions for the owner's own wallet.