The COTI Snap allows users to onboard their COTI account, add and view balances for encrypted private tokens on the COTI network, and interact with COTI dapps.
Visit docs.coti.io/coti-documentation/build-on-coti/tools/coti-metamask-snap for usage details.
To interact with COTI Snap, you will need to install MetaMask Flask, a canary distribution for developers that provides access to upcoming features.
Important
You cannot have other versions of MetaMask installed
# In packages/site/.env.local
VITE_NODE_ENV=local
VITE_SNAP_ENV=local
VITE_SNAP_VERSION=0.0.0
# In packages/site/.env.local
VITE_NODE_ENV=production
VITE_SNAP_ENV=production
VITE_SNAP_VERSION=latest
-
Clone the COTI-snap repository and set up the development environment:
yarn install yarn start
This will start the companion dapp on http://localhost:8000
-
To install the COTI snap and onboard your account, follow the prompts on the companion dapp GUI.
See docs.coti.io/coti-documentation/build-on-coti/tools/coti-metamask-snap for a detailed integration guide.
Run yarn test
to run the tests once.
Run yarn lint
to run the linter, or run yarn lint:fix
to run the linter and
fix any automatically fixable issues.
Contact us on the #developers channel in Discord for questions/support.