Interface EIP1193Provider

interface EIP1193Provider {
    request(args: EIP1193RequestArguments): Promise<unknown>;
    on<TEvent>(event: TEvent, listener: EIP1193EventMap[TEvent]): void;
    removeListener<TEvent>(event: TEvent, listener: EIP1193EventMap[TEvent]): void;
}

Methods

  • Parameters

    • args: EIP1193RequestArguments

    Returns Promise<unknown>

  • Type Parameters

    • TEvent extends keyof EIP1193EventMap

    Parameters

    Returns void

  • Type Parameters

    • TEvent extends keyof EIP1193EventMap

    Parameters

    Returns void