Links

Connecting to the Network

Secret Network API Registry

Are we missing your endpoint or tool? Submit a Pull Request at https://github.com/SecretFoundation/docs/blob/gitbook/development/api-endpoints.md

Secret-4 mainnet

Binaries

Explorers

API endpoints

⚠️ Public APIs. Do not use in production apps!
These endpoints are offered to the community for free, please be mindful and don't spam them.
Type
API
Courtesy of
RPC
https://secret-4.api.trivium.network:26657
RPC
https://rpc.spartanapi.dev
RPC
https://scrt-rpc.blockpane.com (archive node)
RPC
https://rpc.secret.forbole.com/
Forbole
RPC
https://secret.rpc.consensus.one
RPC
https://secretnetwork-rpc.stakely.io
RPC
https://scrt-rpc.agoranodes.com
RPC
https://secret-rpc.lavenderfive.com:443
gRPC-web
https://secret-4.api.trivium.network:9091
gRPC-web
https://wgrpc.spartanapi.dev
gRPC-web
http://scrt-rpc.blockpane.com:9091 (archive node)
gRPC-web
https://grpc.mainnet.secretsaturn.net
gRPC-web
https://scrt-grpc.agoranodes.com
gRPC
https://grpc.spartanapi.dev
gRPC
https://grpc.secret.forbole.com/
Forbole
gRPC
https://secret-grpc.lavenderfive.com:443
LCD
https://secret-4.api.trivium.network:1317
LCD
https://scrt-lcd.blockpane.com (archive node)
LCD
https://api.secret.forbole.com/
Forbole
LCD
https://lcd.spartanapi.dev
LCD
https://secret.api.consensus.one
LCD
https://secretnetwork-lcd.stakely.io
LCD
https://scrt-lcd.agoranodes.com
LCD
https://secret-api.lavenderfive.com:443
Additional API nodes may be found in the Cosmos chain registry

Seed nodes

pulsar-2 testnet

Binaries

Explorers

Faucets

API endpoints

Type
API
Courtesy of
RPC
https://rpc.testnet.secretsaturn.net
RPC
https://rpc.pulsar.scrttestnet.com
SCRT Testnet Committee
GRPC
http://grpcbin.pulsar.scrttestnet.com:9099
SCRT Testnet Committee
gRPC-web
https://grpc.testnet.secretsaturn.net
gRPC-web
https://grpc.pulsar.scrttestnet.com
SCRT Testnet Committee
LCD
http://testnet.securesecrets.org:1317
LCD
https://lcd.testnet.secretsaturn.net
LCD
https://api.pulsar.scrttestnet.com
SCRT Testnet Committee

Peer nodes

Usage examples

RPC

With secretcli (replace "$URL"):
$ secretcli config node "$URL"
$ secretcli config chain-id secret-4 # or pulsar-2
Or:
$ secretcli status --node "$URL" --chain-id secret-4 # or --chain-id pulsar-2

gRPC-web

With [email protected] (replace "$URL"):
import { SecretNetworkClient } from "secretjs";
const grpcWebUrl = "$URL";
const chainId = "secret-4"; // or "pulsar-2"
// 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"):
import { CosmWasmClient, SigningCosmWasmClient } from "secretjs";
const lcdUrl = "$URL";
const chainId = "secret-4"; // or "pulsar-2"
// 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
);

Seeds

Usage example:
$ perl -i -pe 's/^seeds =.*/seeds = "${URL_1},${URL_2},${URL_3}"/' ~/.secretd/config/config.toml
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:
$ perl -i -pe 's/^persistent_peers =.*/persistent_peers = "${URL_1},${URL_2},${URL_3}"/' ~/.secretd/config/config.toml