クイックスタート
以下のボタンで、Kaiganテストネットを対応ウォレットに追加できます。
以下はKaiganテストネットの設定パラメータです。 問題が発生した場合は、[email protected] までメールでお問い合わせください。
| フィールド | 値 |
|---|---|
| ネットワーク名 | kaiganClick to Copy |
| RPC URL | https://rpc.kaigan.jsc.devClick to Copy |
| チェーンID | 5278000Click to Copy |
| 通貨シンボル | JETHClick to Copy |
| ブロックエクスプローラーURL | https://explorer.kaigan.jsc.devClick to Copy |
| フォーセット | https://faucet.kaigan.jsc.devClick to Copy |
JSCテストネット資金には実世界での価値はありません。
上級ユーザー
プログラマティックRPC使用の場合:
- 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)
}