@tevm/decorators / AddEthereumChainParameter
AddEthereumChainParameter =
object
Defined in: eip1193/AddEthereumChainParameter.ts:27
Parameters for wallet_addEthereumChain RPC method (EIP-3085). Used to request that a wallet adds a specific blockchain network.
import { AddEthereumChainParameter } from '@tevm/decorators'
const optimismChain: AddEthereumChainParameter = {
chainId: '0xa', // 10 in hex
chainName: 'Optimism',
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18
},
rpcUrls: ['https://mainnet.optimism.io'],
blockExplorerUrls: ['https://optimistic.etherscan.io']
}
optionalblockExplorerUrls:string[]
Defined in: eip1193/AddEthereumChainParameter.ts:39
chainId:
string
Defined in: eip1193/AddEthereumChainParameter.ts:29
A 0x-prefixed hexadecimal string
chainName:
string
Defined in: eip1193/AddEthereumChainParameter.ts:31
The chain name.
optionaliconUrls:string[]
Defined in: eip1193/AddEthereumChainParameter.ts:40
optionalnativeCurrency:object
Defined in: eip1193/AddEthereumChainParameter.ts:33
Native currency for the chain.
decimals:
number
name:
string
symbol:
string
rpcUrls: readonly
string[]
Defined in: eip1193/AddEthereumChainParameter.ts:38