- Find out your principal id:
dfx identity get-principal
- Replace the in main.mo with the principal you got from step 1.
let owner : Principal = Principal.fromText("<REPLACE WITH YOUR PRINCIPAL>");
- Open up a new terminal in this VSCode project and deploy the token canister:
dfx deploy
- Start the frontend:
npm start
- Set the canister id to a local variable:
CANISTER_PUBLIC_KEY="principal \"$( \dfx canister id token )\""
- Transfer half a billion tokens to the canister Principal ID:
dfx canister call token transfer "($CANISTER_PUBLIC_KEY, 500_000_000)"
-
Claim the tokens from the faucet on the frontend website.
-
Get token canister id:
dfx canister id token