Function createCapsuleViemClient

  • Parameters

    • capsule: Capsule | CoreCapsule
    • params: {
          account?: `0x${string}` | Account;
          cacheTime?: number;
          chain?: Chain;
          key?: string;
          name?: string;
          pollingInterval?: number;
          transport: Transport;
      }
      • Optional account?: `0x${string}` | Account

        The Account to use for the Client. This will be used for Actions that require an account as an argument.

      • Optional cacheTime?: number

        Time (in ms) that cached data will remain in memory.

        Default

        4_000
        
      • Optional chain?: Chain

        Chain for the client.

      • Optional key?: string

        A key for the client.

      • Optional name?: string

        A name for the client.

      • Optional pollingInterval?: number

        Frequency (in ms) for polling enabled actions & events.

        Default

        4_000
        
      • transport: Transport

        The RPC transport

    • Optional opts: ViemClientOpts

    Returns WalletClient

Generated using TypeDoc