Selendra

Documentation

Configuration

Configuring Selendra CLI and projects

Configuration

CLI Configuration

Currently, the Selendra CLI uses zero-config defaults for most operations. Global configuration options will be available in future releases via a selendra.config.js file.

Project Configuration

EVM Projects (Hardhat)

EVM projects use hardhat.config.ts. The CLI pre-configures this file with Selendra network details.

Default Configuration:

import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
  solidity: "0.8.19",
  networks: {
    selendra: {
      url: "https://rpc.selendra.org",
      chainId: 1961,
      accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
    },
    testnet: {
      url: "https://rpc-testnet.selendra.org",
      chainId: 1953,
      accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
    },
  },
};

export default config;

Environment Variables

The CLI and generated projects support .env files for managing secrets.

VariableDescription
PRIVATE_KEYThe private key used for deployments.
RPC_URLCustom RPC URL (optional override).

Network Details

If you need to manually configure other tools, use these network details:

Selendra Mainnet

  • RPC URL: https://rpc.selendra.org
  • Chain ID: 1961
  • Symbol: SEL
  • Explorer: https://explorer.selendra.org

Selendra Testnet

  • RPC URL: https://rpc-testnet.selendra.org
  • Chain ID: 1953
  • Symbol: tSEL
  • Explorer: https://testnet-explorer.selendra.org
Contribute

Found an issue or want to contribute?

Help us improve this documentation by editing this page on GitHub.

Edit this page on GitHub