GOAT Network

Quick Start

Use this guide to connect your tooling, fund a wallet, and deploy a first contract on GOAT Network's Bitcoin-secured infrastructure.

Network Configuration

ParameterValue
Network NameGOAT Network
RPC URLhttps://rpc.goat.network
Chain ID2345
Currency SymbolBTC
Explorerhttps://explorer.goat.network
Bridgehttps://bridge.goat.network
ParameterValue
Network NameGOAT Testnet3
RPC URLhttps://rpc.testnet3.goat.network
Chain ID48816
Currency SymbolBTC
Explorerhttps://explorer.testnet3.goat.network
Bridgehttps://bridge.testnet3.goat.network
Faucethttps://bridge.testnet3.goat.network/faucet

Development Setup

Install prerequisites

Prepare Node.js 18+, a package manager, Git, and a wallet such as MetaMask.

Choose a framework

Hardhat setup
npx hardhat init
npm install --save-dev @nomicfoundation/hardhat-toolbox dotenv
Foundry setup
curl -L https://foundry.paradigm.xyz | bash
foundryup
forge init my-goat-project
  1. Open Remix IDE.
  2. Add GOAT Network or GOAT Testnet3 to your wallet.
  3. Connect the wallet to Remix through the injected provider.
  4. Deploy to the selected GOAT network.

Fund your wallet

On Testnet3, use the faucet. On mainnet, bridge or deposit BTC before attempting contract deployment, because BTC is also the native gas asset.

Deploy a test contract

contracts/HelloGOAT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

contract HelloGOAT {
  string public message = "Hello, GOAT!";

  function setMessage(string memory nextMessage) external {
    message = nextMessage;
  }
}

First Deployment Commands

Hardhat deploy
npx hardhat run scripts/deploy.ts --network goatMainnet
Foundry deploy
forge script script/Deploy.s.sol \
  --rpc-url https://rpc.goat.network \
  --broadcast

Next Steps

Always test dapps on Testnet3 before deploying to mainnet.

On this page