Type alias ClientConfig<transport, chain, accountOrAddress>

ClientConfig<transport, chain, accountOrAddress>: {
    account?: accountOrAddress | Account | Address;
    batch?: {
        multicall?: boolean | Prettify<MulticallBatchOptions>;
    };
    cacheTime?: number;
    chain?: Chain | chain;
    key?: string;
    name?: string;
    pollingInterval?: number;
    transport: transport;
    type?: string;
}

Type Parameters

Type declaration

  • Optional account?: accountOrAddress | Account | Address

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

  • Optional batch?: {
        multicall?: boolean | Prettify<MulticallBatchOptions>;
    }

    Flags for batch settings.

  • Optional cacheTime?: number

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

    Default

    4_000
    
  • Optional chain?: 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 type?: string

    The type of client.

Generated using TypeDoc