diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index 1d673a1c3..bcb5dc575 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -27,11 +27,13 @@ declare module 'web3' { filter(value: string|FilterObject): FilterResult; getAccounts(callback: (err: Error, value: any) => void): string[]; sendTransaction(txData: any, callback: (err: Error, value: any) => void): void; + getTransactionReceipt(txHash: string, callback: (err: Error, receipt: any) => void): void; }; public setProvider(provider: providers.Provider): void; public currentProvider(): any; public fromWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber; + public toWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber; public isAddress(address: string): boolean; } |