ethers.js/lib.esm/providers/provider-ipcsocket.d.ts

21 lines
783 B
TypeScript
Raw Permalink Normal View History

2023-04-22 18:54:45 +09:00
/// <reference types="node" />
2022-09-05 16:57:11 -04:00
import { SocketProvider } from "./provider-socket.js";
import type { Socket } from "net";
2023-11-27 06:11:49 -05:00
import type { JsonRpcApiProviderOptions } from "./provider-jsonrpc.js";
2022-09-05 16:57:11 -04:00
import type { Networkish } from "./network.js";
2023-06-01 17:52:58 -04:00
/**
* An **IpcSocketProvider** connects over an IPC socket on the host
* which provides fast access to the node, but requires the node and
* the script run on the same machine.
*/
2022-09-05 16:57:11 -04:00
export declare class IpcSocketProvider extends SocketProvider {
#private;
2023-06-01 17:52:58 -04:00
/**
* The connected socket.
*/
2022-09-05 16:57:11 -04:00
get socket(): Socket;
2023-11-27 06:11:49 -05:00
constructor(path: string, network?: Networkish, options?: JsonRpcApiProviderOptions);
2022-12-30 16:35:04 -05:00
destroy(): void;
2022-09-05 16:57:11 -04:00
_write(message: string): Promise<void>;
}
//# sourceMappingURL=provider-ipcsocket.d.ts.map