Class MetaMaskWalletProvider

Hierarchy

Implements

Index

Properties

Readonly address$

address$: UniqueSubject<string> = new UniqueSubject<string>()

Readonly networkName$

networkName$: UniqueSubject<NetworkNames> = new UniqueSubject<NetworkNames>()

Readonly type

type: string

Accessors

address

  • get address(): string

networkName

Static ethereum

  • get ethereum(): typeof window["ethereum"]
  • Returns typeof window["ethereum"]

Methods

signMessage

  • signMessage(message: BytesLike): Promise<string>

signTypedData

  • signTypedData(typedData: TypedDataField[], message: any, accountAddress: string): Promise<string>

Static connect

Static detect

  • detect(): boolean
  • Returns boolean