rocketGetting 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

triangle-exclamation

🛠️ Prerequisites

Before you begin, ensure you have:

🌐 Network Configuration

Testnet Details

API Endpoints

Service
Endpoint
Description

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

Priority
Gas Price
Use Case

Low

0.5 Gwei

Non-urgent transactions

Standard

1 Gwei

Regular transactions

Fast

2 Gwei

Priority transactions

Best Practices

  1. Batch Operations: Combine multiple operations in a single transaction

  2. Use Events: Emit events instead of storing data when possible

  3. Optimize Storage: Pack structs and use appropriate data types

  4. View Functions: Mark read-only functions as view or pure

🔧 Development Tools

Essential Tools

Tool
Purpose
Link

Hardhat

Development framework

Foundry

Advanced testing suite

OpenZeppelin

Secure contracts library

Tenderly

Debugging & monitoring

Goliath-Specific Tools

  • Block Explorer: https://testnet.explorer.goliath.net

  • Test Tokens: Get test XCN via Telegram Communityarrow-up-right

  • 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:

  1. Deploy Smart Contracts - Deep dive into deployment

  2. Hardhat Integrationarrow-up-right - Advanced Hardhat configuration

  3. ERC Standardsarrow-up-right - Implement token standards

  4. Gas Optimizationarrow-up-right - Minimize transaction costs

  5. Security Best Practicesarrow-up-right - Build secure contracts

🤝 Get Support


Ready to build? Start deploying your smart contracts on Goliath today!

Last updated