Getting Started
Build Powerful dApps on Goliath Network
Welcome to the Goliath developer documentation! This guide will help you set up your development environment and start building decentralized applications on one of the fastest and most secure distributed ledger platforms.
🎯 Overview
Goliath provides developers with:
⚡ EVM Compatibility: Deploy existing Solidity contracts without modification
🚀 High Performance: 100,000+ TPS with sub-second block confirmations and 3-5 second finality
💰 Low Costs: Transaction fees under $0.001 USD
🔧 Rich Tooling: Comprehensive SDKs and APIs
🌐 Dual Layer Architecture: Access both EVM and native Core Ledger capabilities
⚠️ Critical: XCN Decimal Handling
Important difference from Ethereum: XCN uses 8 decimals inside the EVM (msg.value, address.balance) but 18 decimals in JSON-RPC responses. This is different from Ethereum where everything uses 18 decimals consistently.
Before you start coding, read the XCN Decimal Handling Guide to avoid critical bugs.
🛠️ Prerequisites
Before you begin, ensure you have:
Node.js (v16 or higher) - Download
Git - Download
Code Editor (VS Code recommended) - Download
MetaMask or similar Web3 wallet - Install
🌐 Network Configuration
Testnet Details
API Endpoints
EVM RPC
https://rpc.testnet.goliath.net
Ethereum JSON-RPC compatible endpoint
Core Node
https://testnet.core.goliath.net
Native Goliath Core Node API
Indexer Node
https://testnet.indexer.goliath.net
Historical data and queries
WebSocket
wss://rpc.testnet.goliath.net/ws
Real-time event subscriptions
📝 Your First Smart Contract
1. Install Development Tools
2. Initialize Your Project
Using Hardhat:
Select "Create a JavaScript project" and follow the prompts.
3. Configure for Goliath
Update hardhat.config.js:
4. Write Your Smart Contract
Create contracts/HelloGoliath.sol:
5. Deploy Your Contract
Create scripts/deploy.js:
Deploy:
🌐 Interacting with Your Contract
Using Web3.js
Using Ethers.js
⛽ Gas Optimization
Goliath offers extremely low gas fees, but optimization is still important:
Gas Prices
Low
0.5 Gwei
Non-urgent transactions
Standard
1 Gwei
Regular transactions
Fast
2 Gwei
Priority transactions
Best Practices
Batch Operations: Combine multiple operations in a single transaction
Use Events: Emit events instead of storing data when possible
Optimize Storage: Pack structs and use appropriate data types
View Functions: Mark read-only functions as
vieworpure
🔧 Development Tools
Essential Tools
Goliath-Specific Tools
Block Explorer:
https://testnet.explorer.goliath.netTest Tokens: Get test XCN via Telegram Community
Network Status: Real-time metrics and health
Faucet: Automated faucet coming soon
🎯 Advanced Features
1. Native Token Integration
Goliath supports native token creation without smart contracts:
2. File Storage Service
Store files directly on the network:
3. Consensus Service (Goliath Mesh)
Achieve fair ordering for off-chain applications:
📚 Learning Resources
Tutorials
Code Examples
Simple dApp: Basic wallet interaction
NFT Marketplace: Full-stack NFT platform
DeFi Protocol: Lending and borrowing
DAO Governance: On-chain voting system
Documentation
🆘 Common Issues & Solutions
Connection Issues
Gas Estimation
Transaction Monitoring
🎆 What's Next?
Now that you have your development environment set up:
Deploy Smart Contracts - Deep dive into deployment
Hardhat Integration - Advanced Hardhat configuration
ERC Standards - Implement token standards
Gas Optimization - Minimize transaction costs
Security Best Practices - Build secure contracts
🤝 Get Support
Telegram: Join our developer community
GitHub: Report issues and contribute
Community Forum: Technical discussions
Office Hours: Weekly developer calls
Ready to build? Start deploying your smart contracts on Goliath today!
Last updated