Type alias Client_Base<transport, chain, account, rpcSchema>

Client_Base<transport, chain, account, rpcSchema>: {
    account: account;
    batch?: ClientConfig["batch"];
    cacheTime: number;
    chain: chain;
    key: string;
    name: string;
    pollingInterval: number;
    request: EIP1193RequestFn<rpcSchema extends undefined
        ? EIP1474Methods
        : rpcSchema>;
    transport: ReturnType<transport>["config"] & ReturnType<transport>["value"];
    type: string;
    uid: string;
}

Type Parameters

Type declaration

  • account: account

    The Account of the Client.

  • Optional batch?: ClientConfig["batch"]

    Flags for batch settings.

  • cacheTime: number

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

  • chain: chain

    Chain for the client.

  • key: string

    A key for the client.

  • name: string

    A name for the client.

  • pollingInterval: number

    Frequency (in ms) for polling enabled actions & events. Defaults to 4_000 milliseconds.

  • request: EIP1193RequestFn<rpcSchema extends undefined
        ? EIP1474Methods
        : rpcSchema>

    Request function wrapped with friendly error handling

  • transport: ReturnType<transport>["config"] & ReturnType<transport>["value"]

    The RPC transport

  • type: string

    The type of client.

  • uid: string

    A unique ID for the client.

Generated using TypeDoc