This project implements a Pool Wallet system on the Solana blockchain using Rust. It enables the creation of a Pool Wallet PDA (Program Derived Address) responsible for managing rent payments and other operations for user accounts. The system is designed with efficiency, security, and scalability in mind.
- Pool Wallet Management: Create and initialize a Pool Wallet PDA with a predefined balance.
- User Wallet Creation: Generate PDAs for user wallets, with rent payments covered by the Pool Wallet.
- Borsh Serialization: Efficient serialization of wallet data for storage and retrieval.
- Secure PDA Operations: Uses
invoke_signed
for secure transactions signed by the PDAs.
To work with this project, ensure you have the following:
- Rust installed.
- Solana CLI installed and configured.
- Basic knowledge of the Solana blockchain and Rust programming.
git clone https://github.com/peterchijioke/solana-wallet-pda.git
cd your-repository
Ensure you have Rust and Solana CLI installed. If not, follow these links:
Run the following command to build the Solana program:
cargo build-bpf
Deploy your program to the Solana devnet or mainnet using the Solana CLI:
solana program deploy target/deploy/solana_wallet_pda.so
Use the Solana CLI or custom scripts to create and manage the Pool Wallet and user wallets.
Contributions are welcome! Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.