GOAT Networks and Public RPC Endpoints
This reference guide provides configuration details for connecting to the GOAT network.
The public RPC endpoints are rate-limited. For production applications, consider using a dedicated node or professional RPC provider.
Get Connected
GOAT Testnet Configuration
Parameter | Value |
---|---|
Network Name | GOAT Testnet |
Chain ID | 48815 |
Currency Symbol | BTC |
Currency Decimals | 18 |
RPC URL | https://rpc.testnet.goat.network |
Block Explorer URL | https://explorer.testnet.goat.network |
Network Configurations
JavaScript (ethers.js v6)
const network = {
name: 'GOAT Testnet',
chainId: 48815,
network: 'testnet',
rpc: 'https://rpc.testnet.goat.network',
explorer: 'https://explorer.testnet.goat.network'
}
#### Python (web3.py)
```python
network_config = {
"name": "GOAT Testnet",
"chain_id": 48815,
"rpc_url": "https://rpc.testnet.goat.network",
"explorer_url": "https://explorer.testnet.goat.network"
}
Wallet Connection (MetaMask)
{
"chainId": "0xBEAF", // 48815 in hexadecimal
"chainName": "GOAT Testnet",
"nativeCurrency": {
"name": "Bitcoin",
"symbol": "BTC",
"decimals": 18
},
"rpcUrls": ["https://rpc.testnet.goat.network"],
"blockExplorerUrls": ["https://explorer.testnet.goat.network"]
}
Adding Network to MetaMask
You can add the GOAT Testnet to MetaMask programmatically using the following code:
async function addGoatTestnet() {
try {
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0xBEAF',
chainName: 'GOAT Testnet',
nativeCurrency: {
name: 'Bitcoin',
symbol: 'BTC',
decimals: 18
},
rpcUrls: ['https://rpc.testnet.goat.network'],
blockExplorerUrls: ['https://explorer.testnet.goat.network']
}]
});
} catch (error) {
console.error('Failed to add network:', error);
}
}
Usage Example with ethers.js
import { ethers } from 'ethers';
const provider = new ethers.JsonRpcProvider('https://rpc.testnet.goat.network');
async function getBlockNumber() {
const blockNumber = await provider.getBlockNumber();
console.log('Current block number:', blockNumber);
}
GOAT Mainnet
⚠️
Coming Soon! GOAT Mainnet is currently under development and will be launched after successful testing phase. Stay tuned for updates and mainnet configuration details.
For the latest updates and detailed documentation, visit our official documentation (opens in a new tab).