Templates for working with secret.js.
For secret.js docs go to https://github.com/scrtlabs/secret.js
- 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.testnet.example
file to .env
file and update its contents. To test locally copy .env.local.example
into .env
.
npm run 1
- Connecting to node tutorialnpm run 2
- Creating account tutorialnpm run 3
- Query node tutorialnpm run 4
- Transfer tokens - simplenpm run 4:batch
- Send multiple txs in the same blocknpm run 4:batch_same_tx
- Send multiple messages in the same transactionnpm run 5
- Create, deploy and use a Secret Contractnpm run 5:multi
- Create, deploy and use a Secret Contract with multiple messages in the same transactioncd 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 eventsnpm run 9
- SNIP-24 token. Creating and using fungible tokens with query permits instead of viewing keys