solprofile gives profile to the wallet on solana.
If ~/.config/solana/id.json
does not exist, run.
$ solana-keygen new --no-bip39-passphrase
If not set, run.
$ solana config set --keypair ~/.config/solana/id.json
$ solana config set --url localhost
$ just run-test-validator
$ solana airdrop 2
$ just build
This will generate a keypair in target/deploy
.
$ just keys
Set the Program ID to declare_id!
and programs.localnet.solprofile
on Anchor.toml.
$ just build
To include the new program id in the binary.
$ just deploy
https://solscan.io/account/{ProgramID}?cluster=custom&customUrl=http://localhost:8899
Keep the keypair generated in target/deploy
after anchor build
.
$ just clean