This is a library of utilities to help you get started with Solana Permissioned Environments.
- Docker (https://www.docker.com/products/docker-desktop)
- Bash
1. Source the environment (in case you don't have dotenv configured)
set -a
source .env
set +a
2. Start the local SPE network
docker compose up
You can now access the explorer at http://localhost:8080. The port can be adjusted in the .env
file.
3. Initialize the CLI config
spe init
4. Use the shipped CLIs
spe
is a helper CLI to get you setup in the SPE environmentspe-token
is a CLI to interact with the SPL Token programspe-cli
is an alias for the Solana CLI configured to interact with your SPEspe-keygen
is an alias for the Solana Keygen CLI
# This creates a new keypair
spe create-account [name]
# This funds the account with x SOL
spe fund [name] [amount]
# This sets the account as the current account (i.e. use it for future commands)
spe use-account [name]
Note: Make sure you have funded and called spe use-account
on the account you want to use to create the token.
spe-token create-token
spe-token create-account [token_address]
spe-token mint [account_address] [amount]