Function getChainIdFromNetwork
- getChainIdFromNetwork(network, options): number
Parameters
options: {
clientId?: string;
gasSettings: { maxPriceInGwei: number; speed: "standard" | "fast" | "fastest"; };
gasless?: ({ openzeppelin: { relayerUrl: string; useEOAForwarder: boolean; domainName: string; domainVersion: string; relayerForwarderAddress?: string | undefined; }; experimentalChainlessSupport: boolean; }) | ({ biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }; });
gatewayUrls?: string[];
readonlySettings?: { rpcUrl: string; chainId?: number | undefined; };
secretKey?: string;
supportedChains: ({ rpc: string[]; chainId: number; nativeCurrency: { symbol: string; name: string; decimals: number; }; slug: string; })[];
}
Optional
clientId?: string
gasSettings: { maxPriceInGwei: number; speed: "standard" | "fast" | "fastest"; }
Optional
gasless?: ({ openzeppelin: { relayerUrl: string; useEOAForwarder: boolean; domainName: string; domainVersion: string; relayerForwarderAddress?: string | undefined; }; experimentalChainlessSupport: boolean; }) | ({ biconomy: { apiId: string; apiKey: string; deadlineSeconds: number; }; })
Optional
gatewayUrls?: string[]
Optional
readonlySettings?: { rpcUrl: string; chainId?: number | undefined; }
Optional
secretKey?: string
supportedChains: ({ rpc: string[]; chainId: number; nativeCurrency: { symbol: string; name: string; decimals: number; }; slug: string; })[]
Returns number