Networks
Pre-defined networks that are ready for usage.
Network definition
type EthyleneNetwork = {
chainId: string;
name: string;
rpcUrls: string[];
nativeCurrency: { name?: string; decimals?: number; symbol?: string };
};
ETHEREUM MAINNET
import { ETHEREUM_MAINNET } from "ethylene/constants";
function App() {
return (
...
);
}
RINKEBY
import { RINKEBY } from "ethylene/constants";
function App() {
return (
...
);
}
BSC MAINNET
import { BSC_MAINNET } from "ethylene/constants";
function App() {
return (
...
);
}
BSC TESTNET
import { BSC_TESTNET } from "ethylene/constants";
function App() {
return (
...
);
}
AVAX MAINNET
import { AVAX_MAINNET } from "ethylene/constants";
function App() {
return (
...
);
}
AVAX FUJI C CHAIN
import { AVAX_FUJI_C_CHAIN } from "ethylene/constants";
function App() {
return (
...
);
}