Define sendAsync on HttpProvider
This commit is contained in:
parent
6a8113af1d
commit
ae37f8d9b6
4
packages/web3-typescript-typings/index.d.ts
vendored
4
packages/web3-typescript-typings/index.d.ts
vendored
@ -36,6 +36,10 @@ declare module 'web3' {
|
||||
namespace providers {
|
||||
class HttpProvider implements Web3.Provider {
|
||||
constructor(url?: string, timeout?: number, username?: string, password?: string);
|
||||
public sendAsync(
|
||||
payload: Web3.JSONRPCRequestPayload,
|
||||
callback: (err: Error, result: Web3.JSONRPCResponsePayload) => void,
|
||||
): void;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user