Skip to content

Type Alias: AddEthereumChainParameter

type AddEthereumChainParameter = {
  blockExplorerUrls: string[];
  chainId: string;
  chainName: string;
  iconUrls: string[];
  nativeCurrency: {
     decimals: number;
     name: string;
     symbol: string;
    };
  rpcUrls: readonly string[];
};

Defined in: node_modules/viem/_types/types/eip1193.d.ts:43

Type declaration

blockExplorerUrls?

optional blockExplorerUrls: string[];

chainId

chainId: string;

A 0x-prefixed hexadecimal string

chainName

chainName: string;

The chain name.

iconUrls?

optional iconUrls: string[];

nativeCurrency?

{
  decimals: number;
  name: string;
  symbol: string;
}

Native currency for the chain.

rpcUrls

rpcUrls: readonly string[];