• Internal

    Merges custom chain configuration with default chain settings.

    Parameters

    • chainId: number

      Chain ID to look up default configuration

    • Optionalchain: Partial<
          {
              chainId: number;
              eip1559: boolean;
              entryPoints?: {
                  v060?: { address: string };
                  v070?: {
                      address: string;
                      state?: { deposits: Record<string, { stateKey: ... }> };
                  };
              };
              isTestnet: boolean;
              name: string;
              nativeCurrency?: string;
              paymasters: {
                  v060?: Record<string, { dummyPaymasterAndData: string; type: string }>;
                  v070?: Record<
                      string,
                      { dummyPaymasterData: string; postOpGasLimit: bigint; type: string },
                  >;
              };
              simulation?: {
                  callGasLimit: bigint;
                  preVerificationGas: bigint;
                  verificationGasLimit: bigint;
              };
              smartAccountSupport: { nexus: boolean; smartAccountsV2: boolean };
              stack: ChainStack;
              stateOverrideSupport: {
                  balance: boolean;
                  bytecode: boolean;
                  stateDiff: boolean;
              };
          },
      >

      Optional custom chain configuration to merge

    Returns SupportedChain

    Complete chain configuration

    Error if the resulting configuration is invalid