import { Eth } from "https://deno.land/x/web3@v0.11.1/packages/web3-eth/types/index.d.ts";
Properties
Methods
call(transactionConfig: TransactionConfig): Promise<string>
call(transactionConfig: TransactionConfig, defaultBlock?: BlockNumber): Promise<string>
call(transactionConfig: TransactionConfig, callback?: (error: Error, data: string) => void): Promise<string>
call(): Promise<string>
transactionConfig: TransactionConfig,
defaultBlock: BlockNumber,
callback: (error: Error, data: string) => void,
clearSubscriptions(callback: (error: Error, result: boolean) => void): void
estimateGas(transactionConfig: TransactionConfig, callback?: (error: Error, gas: number) => void): Promise<number>
getAccounts(callback?: (error: Error, accounts: string[]) => void): Promise<string[]>
getBalance(address: string): Promise<string>
getBalance(address: string, defaultBlock: BlockNumber): Promise<string>
getBalance(address: string, callback?: (error: Error, balance: string) => void): Promise<string>
getBalance(): Promise<string>
getBlock(blockHashOrBlockNumber: BlockNumber | string): Promise<BlockTransactionString>
getBlock(blockHashOrBlockNumber: BlockNumber | string, returnTransactionObjects: boolean): Promise<BlockTransactionObject>
getBlock(blockHashOrBlockNumber: BlockNumber | string, callback?: (error: Error, block: BlockTransactionString) => void): Promise<BlockTransactionString>
getBlock(): Promise<BlockTransactionObject>
blockHashOrBlockNumber: BlockNumber | string,
returnTransactionObjects: boolean,
callback?: (error: Error, block: BlockTransactionObject) => void,
getBlockNumber(callback?: (error: Error, blockNumber: number) => void): Promise<number>
getBlockTransactionCount(blockHashOrBlockNumber: BlockNumber | string, callback?: (error: Error, numberOfTransactions: number) => void): Promise<number>
getBlockUncleCount(blockHashOrBlockNumber: BlockNumber | string, callback?: (error: Error, numberOfTransactions: number) => void): Promise<number>
getChainId(callback?: (error: Error, version: number) => void): Promise<number>
getCode(address: string): Promise<string>
getCode(address: string, defaultBlock: BlockNumber): Promise<string>
getCode(address: string, callback?: (error: Error, code: string) => void): Promise<string>
getCode(): Promise<string>
getCoinbase(callback?: (error: Error, coinbaseAddress: string) => void): Promise<string>
getFeeHistory(): Promise<FeeHistoryResult>
rewardPercentiles: number[],
callback?: (error: Error, feeHistory: FeeHistoryResult) => void,
getGasPrice(callback?: (error: Error, gasPrice: string) => void): Promise<string>
getHashrate(callback?: (error: Error, hashes: number) => void): Promise<number>
getNodeInfo(callback?: (error: Error, version: string) => void): Promise<string>
getPastLogs(options: PastLogsOptions, callback?: (error: Error, logs: Log[]) => void): Promise<Log[]>
getPendingTransactions(callback?: (error: Error, result: Transaction[]) => void): Promise<Transaction[]>
getProtocolVersion(callback?: (error: Error, protocolVersion: string) => void): Promise<string>
getStorageAt(address: string, position: ): Promise<string>
getStorageAt(): Promise<string>
getStorageAt(): Promise<string>
address: string,
callback?: (error: Error, storageAt: string) => void,
getStorageAt(): Promise<string>
getTransaction(transactionHash: string, callback?: (error: Error, transaction: Transaction) => void): Promise<Transaction>
getTransactionCount(address: string): Promise<number>
getTransactionCount(address: string, defaultBlock: BlockNumber): Promise<number>
getTransactionCount(address: string, callback?: (error: Error, count: number) => void): Promise<number>
getTransactionCount(): Promise<number>
getTransactionFromBlock(): Promise<Transaction>
blockHashOrBlockNumber: BlockNumber | string,
indexNumber: number | string | BN,
callback?: (error: Error, transaction: Transaction) => void,
getTransactionReceipt(hash: string, callback?: (error: Error, transactionReceipt: TransactionReceipt) => void): Promise<TransactionReceipt>
getUncle(blockHashOrBlockNumber: BlockNumber | string, uncleIndex: number | string | BN): Promise<BlockTransactionString>
getUncle(): Promise<BlockTransactionObject>
blockHashOrBlockNumber: BlockNumber | string,
uncleIndex: number | string | BN,
returnTransactionObjects: boolean,
getUncle(): Promise<BlockTransactionString>
blockHashOrBlockNumber: BlockNumber | string,
uncleIndex: number | string | BN,
callback?: (error: Error, uncle: any) => void,
getUncle(): Promise<BlockTransactionObject>
blockHashOrBlockNumber: BlockNumber | string,
uncleIndex: number | string | BN,
returnTransactionObjects: boolean,
callback?: (error: Error, uncle: any) => void,
getWork(callback?: (error: Error, result: string[]) => void): Promise<string[]>
isMining(callback?: (error: Error, mining: boolean) => void): Promise<boolean>
requestAccounts(): Promise<string[]>
requestAccounts(callback: (error: Error, result: string[]) => void): Promise<string[]>
sendSignedTransaction(signedTransactionData: string, callback?: (error: Error, hash: string) => void): PromiEvent<TransactionReceipt>
sendTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, hash: string) => void): PromiEvent<TransactionReceipt>
setProvider(provider: provider): boolean
sign(): Promise<string>
dataToSign: string,
address: string | number,
callback?: (error: Error, signature: string) => void,
signTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, signedTransaction: RLPEncodedTransaction) => void): Promise<RLPEncodedTransaction>
signTransaction(transactionConfig: TransactionConfig, address: string): Promise<RLPEncodedTransaction>
signTransaction(): Promise<RLPEncodedTransaction>
transactionConfig: TransactionConfig,
address: string,
callback: (error: Error, signedTransaction: RLPEncodedTransaction) => void,
submitWork(data: [string, string, string], callback?: (error: Error, result: boolean) => void): Promise<boolean>
subscribe(): Subscription<Log>
subscribe(type: "syncing", callback?: (error: Error, result: Syncing) => void): Subscription<Syncing>
subscribe(type: "newBlockHeaders", callback?: (error: Error, blockHeader: BlockHeader) => void): Subscription<BlockHeader>
subscribe(type: "pendingTransactions", callback?: (error: Error, transactionHash: string) => void): Subscription<string>
Static Properties
readonly
providers: Providers