Class WalletService

Hierarchy

Index

Constructors

constructor

Properties

Readonly EOAAddress$

EOAAddress$: Observable<string>

chain

chain: number

Readonly chainId

chainId: number

provider

provider: WalletProvider

Readonly rpcBundlerUrl

rpcBundlerUrl: string

rpcUrl

rpcUrl: string

Readonly wallet$

wallet$: ObjectSubject<Wallet, "address" | "providerType"> = new ObjectSubject<Wallet>()

Accessors

EOAAddress

  • get EOAAddress(): string
  • Returns string

etherWallet

  • get etherWallet(): Partial<EtherWallet>
  • Returns Partial<EtherWallet>

wallet

walletProvider

Methods

destroy

  • destroy(): void

getWalletProvider

  • getWalletProvider(): JsonRpcProvider
  • Returns JsonRpcProvider

init

signMessage

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

    • message: BytesLike

    Returns Promise<string>

signTypedData

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

    • types: TypedDataField[]
    • message: any
    • accountAddress: string

    Returns Promise<string>