Interactive command-line interface for managing the Base-Solana bridge operations.
Warning
The scripts in this directory are for example purposes only and have not been audited. Use at your own risk.
bun installMany commands require a Solana keypair for signing transactions. You can generate one using the Solana CLI:
solana-keygen newThis will create a keypair at ~/.config/solana/id.json (or prompt you for a location). This is the default keypair location that the scripts will use when you specify --payer-kp config or similar options.
Important: The generated keypair needs to be funded with SOL in order to send transactions. For devnet testing, you can request SOL from the Solana Devnet Faucet.
bun cli sol bridge wrap-token- Create wrapped version of Base token on Solanabun cli sol bridge bridge-sol- Bridge SOL from Solana to Basebun cli sol bridge bridge-spl- Bridge SPL tokens from Solana to Basebun cli sol bridge bridge-wrapped-token- Bridge wrapped tokens back to Basebun cli sol bridge bridge-call- Bridge a call from Solana to Basebun cli sol bridge prove-message- Prove message from Base and relay to Solanabun cli sol bridge relay-message- Relay message from Base
bun cli sol build- Build Solana programbun cli sol deploy- Deploy Solana programbun cli sol generate-idl- Generate programIDLbun cli sol generate-client- Generate TypeScript client
bun cli sol spl create-mint- Create new SPL token mintbun cli sol spl create-ata- Create Associated Token Accountbun cli sol spl mint- Mint SPL tokens
bun cli sol generate-keypair- Generate new Solana keypairbun cli sol pubkey-to-bytes32- Convert Solana pubkey to bytes32
All commands support non-interactive execution by providing required arguments:
bun cli sol bridge bridge-sol --deploy-env testnet-prod --to 0x1234567890123456789012345678901234567890 --amount 10 --payer-kp config --pay-for-relay