Use with SecretJS
How to detect Coin98
Connecting with SecretJS
// Enabling before using the Coin98 is recommended.
// This method will ask the user whether or not to allow access if they haven't visited this website.
// Also, it will request user to unlock the wallet if the wallet is locked.
await window.keplr.enable(chainId);
const offlineSigner = window.getOfflineSigner(chainId);
**const enigmaUtils = window.getEnigmaUtils(chainId);**
// You can get the address/public keys by `getAccounts` method.
// It can return the array of address/public key.
// But, currently, Coin98 extension manages only one address/public key pair.
// XXX: This line is needed to set the sender address for SigningCosmosClient.
const accounts = await offlineSigner.getAccounts();
// Initialize the gaia api with the offline signer that is injected by Coin98 extension.
const cosmJS = new SigningCosmWasmClient(
"https://lcd-secret.keplr.app/rest",
accounts[0].address,
offlineSigner,
**enigmaUtils**
);Suggest Adding SNIP-20 Tokens to Coin98
Get SNIP-20 Viewing Key
Interaction Options
Last updated