Developer Documentation

Build on Integralayer

Complete guides, code examples, and tools for building decentralized applications on the Integralayer EVM-compatible blockchain.

26217Chain ID
~2sBlock Time
EVMCompatible

Quick Reference

RPC URLhttps://evm.integralayer.com
Chain ID26217 (0x6669)
SymbolIRL
Decimals18
Explorerexplorer.integralayer.com
WebSocketwss://ws.integralayer.com

Developer Tutorials

Step-by-step guides with complete, working code examples

Setting Up Your Development Environment

1Install Node.js 18+ and npm
2Create a new Hardhat project
3Configure the Integralayer network
4Set up environment variables securely
Terminalbash
1"comment"># Create a new Hardhat project
2mkdir my-integra-project && cd my-integra-project
3npm init -y
4npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox
5
6"comment"># Initialize Hardhat
7npx hardhat init
8
9"comment"># Select "Create a JavaScript project"
10"comment"># Press enter through all prompts
hardhat.config.jsjavascript
1require(class="string">"@nomicfoundation/hardhat-toolbox");
2
3class=class="string">"comment">/** @type import(class="string">'hardhat/config').HardhatUserConfig */
4module.exports = {
5 solidity: class="string">"0.8.24",
6 networks: {
7 integralayer: {
8 url: "https:class="commentclass="string">">//evm.integralayer.com",
9 chainId: 26217,
10 accounts: [process.env.PRIVATE_KEY], class=class="string">"comment">// Never commit private keys!
11 gasPrice: 25000000000, class=class="string">"comment">// 25 gwei
12 },
13 },
14 etherscan: {
15 apiKey: {
16 integralayer: class="string">"no-api-key-needed",
17 },
18 customChains: [
19 {
20 network: class="string">"integralayer",
21 chainId: 26217,
22 urls: {
23 apiURL: "https:class="commentclass="string">">//explorer.integralayer.com/api",
24 browserURL: "https:class="commentclass="string">">//explorer.integralayer.com",
25 },
26 },
27 ],
28 },
29};
.envbash
1"comment"># Create a .env file for your private key
2"comment"># NEVER commit this file to git!
3PRIVATE_KEY=your_private_key_here
4
5"comment"># Add .env to your .gitignore
6echo ".env" >> .gitignore

RPC Endpoints

Public endpoints for connecting your applications

JSON-RPC (EVM)

EVM

Ethereum JSON-RPC endpoint for EVM interactions

https://evm.integralayer.com
eth_*net_*web3_*

JSON-RPC WebSocket

EVM

WebSocket endpoint for real-time EVM events

wss://ws.integralayer.com
eth_subscribeeth_unsubscribe

Cosmos RPC

Cosmos

Tendermint RPC for Cosmos SDK interactions

https://rpc.integralayer.com
broadcast_tx_syncabci_querystatus

Cosmos REST API

Cosmos

RESTful API for Cosmos SDK queries

https://api.integralayer.com
GET /cosmos/*GET /integralayer/*

Security Best Practices

Important guidelines for building secure applications

Private Key Security

Never expose private keys in client-side code. Use environment variables and hardware wallets for production.

Gas Estimation

Always estimate gas before transactions and add a 20% buffer. Check gas prices to avoid failed transactions.

Contract Audits

Have your smart contracts audited before deploying to production. Use battle-tested libraries like OpenZeppelin.

Input Validation

Always validate user inputs on both client and contract side. Never trust external data without verification.

Need More Help?

Join our developer community for support and discussions