Selendra

Documentation

Quick Start

Get started with Selendra CLI in minutes

Quick Start Guide

This guide will walk you through creating, compiling, and deploying your first smart contract using the Selendra CLI.

1. Initialize a Project

Create a new project using the EVM template (default):

selendra init my-first-dapp
cd my-first-dapp

This creates a complete project structure with:

  • Hardhat configuration
  • TypeScript support
  • Sample ERC20 contract (contracts/MyToken.sol)
  • Deployment scripts

2. Install Dependencies

Install the project dependencies:

npm install

3. Compile Contracts

Compile your smart contracts:

selendra compile

You should see output indicating successful compilation.

4. Configure Account

To deploy contracts, you need a wallet with SEL tokens.

Generate a new wallet:

selendra account new

Save the private key to your .env file:

# .env
PRIVATE_KEY=your_private_key_here

Get Testnet Tokens:

Use the faucet to get some test SEL:

selendra faucet <your-address>

5. Deploy to Testnet

Deploy your contract to the Selendra Testnet:

selendra deploy MyToken --network testnet

Follow the interactive prompts to confirm the deployment. Once successful, you'll see the contract address and a link to the block explorer.

What's Next?

Contribute

Found an issue or want to contribute?

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

Edit this page on GitHub