$ secretcli config node "$URL"
$ secretcli config chain-id secret-4 # or pulsar-3
$ secretcli status --node "$URL" --chain-id secret-4 # or --chain-id pulsar-3
import { SecretNetworkClient } from "secretjs";
const grpcWebUrl = "$URL";
const chainId = "secret-4"; // or "pulsar-3"
// Readonly Client
const secretjs = await SecretNetworkClient.create({
grpcWebUrl,
chainId,
});
// Or a signer client with Keplr integration
await window.keplr.enable(chainId);
const [{ address: myAddress }] = await keplrOfflineSigner.getAccounts();
const secretjs = await SecretNetworkClient.create({
grpcWebUrl,
chainId,
wallet: window.getOfflineSignerOnlyAmino(chainId),
walletAddress: myAddress,
encryptionUtils: window.getEnigmaUtils(chainId),
});
import { CosmWasmClient, SigningCosmWasmClient } from "secretjs";
const lcdUrl = "$URL";
const chainId = "secret-4"; // or "pulsar-3"
// Readonly Client
const queryJs = new CosmWasmClient(lcdUrl);
// Or a signer client with Keplr integration
await window.keplr.enable(chainId);
const offlineSigner = window.getOfflineSigner(chainId);
const enigmaUtils = window.getEnigmaUtils(chainId);
const accounts = await offlineSigner.getAccounts();
const secretJS = new SigningCosmWasmClient(
lcdUrl,
accounts[0].address,
offlineSigner,
enigmaUtils
);
$ perl -i -pe 's/^seeds =.*/seeds = "${URL_1},${URL_2},${URL_3}"/' ~/.secretd/config/config.toml
$ perl -i -pe 's/^persistent_peers =.*/persistent_peers = "${URL_1},${URL_2},${URL_3}"/' ~/.secretd/config/config.toml