This repository provides a set of scripts to interact with the Solana blockchain using Solana CLI. It includes wallet creation, program deployment, and program invocation.
- Install Solana CLI: Solana Installation Guide
- Install Anchor: Anchor Installation Guide
- Wallet Creation: Quickly generate a new wallet keypair.
- Program Deployment: Deploy smart contracts to the Solana blockchain.
- Program Invocation: Interact with deployed programs.
create_wallet.sh
: Creates a new wallet keypair and saves it towallet.json
.deploy_program.sh
: Deploys a smart contract from the specified directory.invoke_program.sh
: Invokes a deployed program with arguments.
-
Set up your environment:
export SOLANA_CLUSTER=https://api.devnet.solana.com export WALLET_PATH=./wallet.json
-
Run scripts:
- Create a wallet:
./scripts/create_wallet.sh
- Deploy a program:
./scripts/deploy_program.sh ./programs/xlauncher
- Invoke a program:
./scripts/invoke_program.sh <PROGRAM_ID> <ARGUMENTS>
- Create a wallet:
This project is licensed under the MIT License.