Define sendAsync on HttpProvider
This commit is contained in:
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 {
|
namespace providers {
|
||||||
class HttpProvider implements Web3.Provider {
|
class HttpProvider implements Web3.Provider {
|
||||||
constructor(url?: string, timeout?: number, username?: string, password?: string);
|
constructor(url?: string, timeout?: number, username?: string, password?: string);
|
||||||
|
public sendAsync(
|
||||||
|
payload: Web3.JSONRPCRequestPayload,
|
||||||
|
callback: (err: Error, result: Web3.JSONRPCResponsePayload) => void,
|
||||||
|
): void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user