Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web3/packages/web3-eth-personal/types/index.d.ts>Personal

Deno / TypeScript to Ethereum Connector
Latest
class Personal
import { Personal } from "https://deno.land/x/web3@v0.11.1/packages/web3-eth-personal/types/index.d.ts";

Constructors

new
Personal()
new
Personal(provider: provider)
new
Personal(provider: provider, net: net.Socket)

Properties

BatchRequest: new () => BatchRequest
readonly
currentProvider: provider
defaultAccount: string | null
defaultBlock: string | number
readonly
givenProvider: any

Methods

ecRecover(
dataThatWasSigned: string,
signature: string,
callback?: (error: Error, address: string) => void,
): Promise<string>
extend(extension: Extension): any
getAccounts(callback?: (error: Error, accounts: string[]) => void): Promise<string[]>
importRawKey(
privateKey: string,
password: string,
callback?: (error: Error, result: string) => void,
): Promise<string>
lockAccount(address: string, callback?: (error: Error, success: boolean) => void): Promise<boolean>
newAccount(password: string, callback?: (error: Error, address: string) => void): Promise<string>
sendTransaction(
transactionConfig: TransactionConfig,
password: string,
callback?: (error: Error, transactionHash: string) => void,
): Promise<string>
setProvider(provider: provider): boolean
sign(
dataToSign: string,
address: string,
password: string,
callback?: (error: Error, signature: string) => void,
): Promise<string>
signTransaction(
transactionConfig: TransactionConfig,
password: string,
callback?: (error: Error, RLPEncodedTransaction: RLPEncodedTransaction) => void,
): Promise<RLPEncodedTransaction>
unlockAccount(
address: string,
password: string,
unlockDuration: number,
callback?: (error: Error) => void,
): Promise<boolean>

Static Properties

readonly
givenProvider: any
readonly
providers: Providers