Connecting to Celestium Network

To interact with the Celestium blockchain, you need to connect your wallet or development environment to the network. This guide will help you set up the Celestium Testnet.

Celestium Testnet Configuration

Use the following details to connect to the Celestium Testnet:

  • Network Name: Celestium Testnet

  • RPC URL: http://rpc-private-testnet.celestium.network

  • Chain ID: 252525

  • Currency Symbol: CLT

  • Block Explorer URL: http://testnet.celestium.network


Connecting MetaMask to Celestium

  1. Open MetaMask and click the network dropdown at the top.

  2. Select Add NetworkAdd a network manually.

  3. Enter the details from the Celestium Testnet Configuration section above.

  4. Click Save. You are now connected to the Celestium Testnet.


Hardhat Network Configuration

To configure Hardhat for Celestium:

module.exports = {
  networks: {
    celestium: {
      url: 'http://rpc-private-testnet.celestium.network',
      chainId: 252525,
      accounts: [PRIVATE_KEY]
    }
  }
};

Replace PRIVATE_KEY with your wallet’s private key.


Foundry Configuration

Create a foundry.toml file with the following content:

toml

[profile.default]
rpc_url = "http://rpc-private-testnet.celestium.network"
chain_id = 252525

Verifying Connection

After setting up, verify your connection by querying the block number:

bash

curl -X POST http://rpc-private-testnet.celestium.network -H "Content-Type: application/json" --data '{
  "jsonrpc":"2.0",
  "method":"eth_blockNumber",
  "params":[],
  "id":1
}'

If you receive a block number response, you are successfully connected to the Celestium Testnet.


With your environment connected to Celestium, you are ready to start deploying smart contracts and interacting with the blockchain.

Last updated