Templates for working with SecretJS
- Connecting to Secret Network
- Creating account using SecretJS
- Query Secret Network
- Submitting transactions
- Using contracts
- Wallets
- SNIP-20 tokens
- Consume Websocket contract events
To install all required packages run:
npm install
Make sure to copy .env.example file to .env file and update its contents.
.env.example is mainnet config, to test locally copy .env.local.example, and for testnet copy .env.testnet.example
npm run 1
- Connecting to node tutorialnpm run 2
- Creating account tutorialnpm run 3
- Query node tutorialnpm run 4
- Transfer tokens - simplenpm run 4:advanced
- Transfer tokens - advancednpm run 5
- Create, deploy and use a Secret Contractcd 6_wallets/keplr && npm i && npm run dev
- Keplr walletnpm run 7
- SNIP-20 token. Creating and using fungible tokenscd 8_websocket && npm i && npm run dev
- Consume Websocket contract events