Skip to content

The official MetaMask Snap for the COTI network. Onboard your AES key for encryption and decryption in dApps. View the balance of encrypted tokens, providing secure interactions with the COTI ecosystem.

License

Notifications You must be signed in to change notification settings

coti-io/coti-snap

COTI Snap Header
COTI Snap Preview

COTI Snap

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.

Usage

Visit docs.coti.io/coti-documentation/build-on-coti/tools/coti-metamask-snap for usage details.

Development

Metamask Flask

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

📋 Quick Setup

For Development (Testnet)

# In packages/site/.env.local
VITE_NODE_ENV=local
VITE_SNAP_ENV=local
VITE_SNAP_VERSION=0.0.0

For Production (Mainnet)

# In packages/site/.env.local
VITE_NODE_ENV=production
VITE_SNAP_ENV=production
VITE_SNAP_VERSION=latest

Running

  1. 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

  2. To install the COTI snap and onboard your account, follow the prompts on the companion dapp GUI.

dApp Integration Guide

See docs.coti.io/coti-documentation/build-on-coti/tools/coti-metamask-snap for a detailed integration guide.

Testing and Linting

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.

Support

Contact us on the #developers channel in Discord for questions/support.

About

The official MetaMask Snap for the COTI network. Onboard your AES key for encryption and decryption in dApps. View the balance of encrypted tokens, providing secure interactions with the COTI ecosystem.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 6

Languages