Type alias TransportConfig<TType, TEIP1193RequestFn>

TransportConfig<TType, TEIP1193RequestFn>: {
    key: string;
    name: string;
    request: TEIP1193RequestFn;
    retryCount?: number;
    retryDelay?: number;
    timeout?: number;
    type: TType;
}

Type Parameters

Type declaration

  • key: string

    The key of the transport.

  • name: string

    The name of the transport.

  • request: TEIP1193RequestFn

    The JSON-RPC request function that matches the EIP-1193 request spec.

  • Optional retryCount?: number

    The max number of times to retry.

  • Optional retryDelay?: number

    The base delay (in ms) between retries.

  • Optional timeout?: number

    The timeout (in ms) for requests.

  • type: TType

    The type of the transport.

Generated using TypeDoc