Networks
Last updated
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0x58F0D', // 364301
chainName: 'T-REX InGen Testnet',
nativeCurrency: { name: 'TREX', symbol: 'TREX', decimals: 18 },
rpcUrls: ['https://rpc.ingen.t-rex.network'],
blockExplorerUrls: ['https://explorer.ingen.t-rex.network'],
}],
});import { defineChain } from 'viem';
export const ingen = defineChain({
id: 364301,
name: 'T-REX InGen Testnet',
nativeCurrency: { name: 'TREX', symbol: 'TREX', decimals: 18 },
rpcUrls: {
default: { http: ['https://rpc.ingen.t-rex.network'] },
},
blockExplorers: {
default: {
name: 'InGen Explorer',
url: 'https://explorer.ingen.t-rex.network',
},
},
testnet: true,
});import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://rpc.ingen.t-rex.network', {
chainId: 364301,
name: 't-rex-ingen',
});// hardhat.config.ts
networks: {
ingen: {
url: 'https://rpc.ingen.t-rex.network',
chainId: 364301,
// accounts: [process.env.PRIVATE_KEY!],
},
},# foundry.toml
[rpc_endpoints]
ingen = "https://rpc.ingen.t-rex.network"cast block-number --rpc-url https://rpc.ingen.t-rex.network
forge script script/Deploy.s.sol --rpc-url ingen --broadcast