Crypto DToken, is a crypto token built on the Internet Computer (IC) where user can get free tokens and transfer them with their friends using their principal ID like a bank.
The Frontend is implemented using React.js, Material Ui and Backend using DFINITY's Motoko language.
The user can claim free 10000 tokens, but just for once. Then the ability to see the balance of the tokens, as well as transfering the amount of tokens from wallet to another wallet.
The page design is inspired from the old operating system interface design.
- 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