- First change the .env file, we need to the
ANCHOR_WALLETto our local config wallet:
ANCHOR_WALLET="/home/yourWalletConfig/.config/solana/id.json"
- Second, run
solana-test-validatorin a new terminal:
solana-test-validator -r
- Third,
anchor deployour program which in thesolana_device_iddirectory to the localnet.
anchor depoly
- Fourth, run
device-did-run.ts
ts-node device-did-run.ts
we also made a PoC using spl-token-2022 Token Extension in poc-for-next folder which will be our next iteration.