Add web3.eth.blockNumber
This commit is contained in:
committed by
Leonid Logvinov
parent
217f84204e
commit
cf37dfb257
3
packages/web3-typescript-typings/index.d.ts
vendored
3
packages/web3-typescript-typings/index.d.ts
vendored
@@ -15,7 +15,8 @@ declare module 'web3' {
|
||||
defaultAccount: string;
|
||||
compile: {
|
||||
solidity(sourceString: string, cb?: (err: any, result: any) => void): object,
|
||||
}
|
||||
};
|
||||
blockNumber: number;
|
||||
sign(address: string, message: string, callback: (err: Error, signData: string) => void): string;
|
||||
getBlock(blockHash: string, callback: (err: Error, blockObj: any) => void): BigNumber.BigNumber;
|
||||
getBlockNumber(callback: (err: Error, blockNumber: number) => void): void;
|
||||
|
Reference in New Issue
Block a user