Quickstart
Use the button below to add the Kaigan testnet to a compatible wallet.
Below are the configuration parameters for the Kaigan Testnet. If you encounter issues, please email [email protected].
| Field | Value |
|---|---|
| Network Name | kaiganClick to Copy |
| RPC URL | https://rpc.kaigan.jsc.devClick to Copy |
| Chain ID | 5278000Click to Copy |
| Currency Symbol | JETHClick to Copy |
| Block Explorer URL | https://explorer.kaigan.jsc.devClick to Copy |
| Faucet | https://faucet.kaigan.jsc.devClick to Copy |
JSC testnet funds do not have any real-world value.
Advanced Users
For programmatic RPC usage:
- curl
- ethers.js
- web3.js
- viem
- go-ethereum
curl -X POST "https://rpc.kaigan.jsc.dev" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
const ethers = require('ethers');
const url = `https://rpc.kaigan.jsc.dev`;
const kaiganProvider = new ethers.providers.JsonRpcProvider(url);
import Web3 from 'web3';
const customRpcUrl = `https://rpc.kaigan.jsc.dev`;
const web3 = new Web3(new Web3.providers.HttpProvider(customRpcUrl));
web3.eth.getBlockNumber()
.then(blockNumber => {
console.log('Current block number on custom chain:', blockNumber);
})
.catch(error => {
console.error('Error connecting to custom chain:', error);
});
import { defineChain } from 'viem'
export const kaigan = defineChain({
id: 5278000,
name: 'JSC Kaigan',
nativeCurrency: {
decimals: 18,
name: 'JSC Ether',
symbol: 'JETH',
},
rpcUrls: {
default: {
http: [`https://rpc.kaigan.jsc.dev`],
},
},
blockExplorers: {
default: { name: 'Explorer', url: 'https://explorer.kaigan.jsc.dev' },
},
})
import (
"fmt"
"os"
"github.com/ethereum/go-ethereum/ethclient"
)
rpcURL := "https://rpc.kaigan.jsc.dev"
client, err := ethclient.Dial(rpcURL)
if err != nil {
log.Println(err)
panic(err)
}