Skip to main content

agung (Testnet)

agung is a specialized testnet of the peaq ecosystem, a Layer 1 multi-chain platform designed to support Decentralized Physical Infrastructure Networks (DePINs) and foster the Economy of Things (EoT). The agung testnet showcases the capabilities of the peaq ecosystem and provides developers with a platform to test and experiment with various functionalities.

Network Endpoints

You can connect to agung (Testnet) network via WSS or RPC endpoints.



Web3.js library

First, copy public network endpoint from above (you can also use your own endpoint). Next, create an Web3 instance with your endpoint using Web3.js library and configure the provider to connect to agung testnet (both RPC and WSS protocols supported):

const Web3 = require('web3'); // Import Web3 library
// Create a local Web3 instance and set peaq as the provider
const web3 = new Web3("RPC-API-ENDPOINT-HERE"); // Replace with your RPC URL

Ethers.js library

Similar to Web.js instruction above you'll need an endpoint. For the Ethers.js library, define the provider by using ethers.JsonRpcProvider(providerURL) and setting the provider URL to agung:

const ethers = require('ethers'); // Import Ethers.js library
// Define the provider using ethers.JsonRpcProvider(providerURL, {object}) and set the provider URL to peaq:
const provider = new ethers.JsonRpcProvider("RPC-API-ENDPOINT-HERE"); // Replace with your RPC URL

Chain ID

agung (Testnet) chain ID is 9990, or 0x270F in hex.