Usage examples
RPC
With secretcli (replace "$URL"):
$ secretcli config node "$URL"
$ secretcli config chain-id secret-4 # or pulsar-3Or:
$ secretcli status --node "$URL" --chain-id secret-4 # or --chain-id pulsar-3gRPC-web
With secretjs@beta (replace "$URL"):
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),
});LCD
Swagger/OpenAPI UI can be found under $URL/swagger/ and $URL/openapi/.
With (the deprecated) secretjs (replace "$URL"):
Seeds
Usage example:
Note that when you initialize a node with secretd init --chain-id secret-4 these seeds are automatically populated into ~/.secretd/config/config.toml.
Peers
Usage example:
Last updated
Was this helpful?