Build on Integralayer
Complete guides, code examples, and tools for building decentralized applications on the Integralayer EVM-compatible blockchain.
Quick Reference
https://evm.integralayer.com26217 (0x6669)IRL18explorer.integralayer.comwss://ws.integralayer.comDeveloper Tutorials
Step-by-step guides with complete, working code examples
Setting Up Your Development Environment
1"comment"># Create a new Hardhat project2mkdir my-integra-project && cd my-integra-project3npm init -y4npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox56"comment"># Initialize Hardhat7npx hardhat init89"comment"># Select "Create a JavaScript project"10"comment"># Press enter through all prompts1require(class="string">"@nomicfoundation/hardhat-toolbox");23class=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 gwei12 },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};1"comment"># Create a .env file for your private key2"comment"># NEVER commit this file to git!3PRIVATE_KEY=your_private_key_here45"comment"># Add .env to your .gitignore6echo ".env" >> .gitignoreRPC Endpoints
Public endpoints for connecting your applications
JSON-RPC (EVM)
EVMEthereum JSON-RPC endpoint for EVM interactions
https://evm.integralayer.comJSON-RPC WebSocket
EVMWebSocket endpoint for real-time EVM events
wss://ws.integralayer.comCosmos RPC
CosmosTendermint RPC for Cosmos SDK interactions
https://rpc.integralayer.comCosmos REST API
CosmosRESTful API for Cosmos SDK queries
https://api.integralayer.comSecurity 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.