Skip to main content

Web3BaseWalletAccount

Indexable

[key: string]: unknown

Index

Properties

readonlyaddress

address: string

readonlyencrypt

encrypt: (password: string, options?: Record<string, unknown>) => Promise<KeyStore>

Type declaration

    • (password: string, options?: Record<string, unknown>): Promise<KeyStore>
    • Parameters

      • password: string
      • optionaloptions: Record<string, unknown>

      Returns Promise<KeyStore>

readonlyprivateKey

privateKey: string

readonlysign

sign: (data: string | Record<string, unknown>) => { message?: string; messageHash: string; r: string; s: string; signature: string; v: string }

Type declaration

    • (data: string | Record<string, unknown>): { message?: string; messageHash: string; r: string; s: string; signature: string; v: string }
    • Parameters

      • data: string | Record<string, unknown>

      Returns { message?: string; messageHash: string; r: string; s: string; signature: string; v: string }

      • optionalreadonlymessage?: string
      • readonlymessageHash: string
      • readonlyr: string
      • readonlys: string
      • readonlysignature: string
      • readonlyv: string

readonlysignTransaction

signTransaction: (tx: Transaction) => Promise<{ messageHash: string; r: string; rawTransaction: string; s: string; transactionHash: string; v: string }>

Type declaration

    • (tx: Transaction): Promise<{ messageHash: string; r: string; rawTransaction: string; s: string; transactionHash: string; v: string }>
    • Parameters

      Returns Promise<{ messageHash: string; r: string; rawTransaction: string; s: string; transactionHash: string; v: string }>