provider-ipcsocket.d.ts 783 B

123456789101112131415161718192021
  1. /// <reference types="node" />
  2. import { SocketProvider } from "./provider-socket.js";
  3. import type { Socket } from "net";
  4. import type { JsonRpcApiProviderOptions } from "./provider-jsonrpc.js";
  5. import type { Networkish } from "./network.js";
  6. /**
  7. * An **IpcSocketProvider** connects over an IPC socket on the host
  8. * which provides fast access to the node, but requires the node and
  9. * the script run on the same machine.
  10. */
  11. export declare class IpcSocketProvider extends SocketProvider {
  12. #private;
  13. /**
  14. * The connected socket.
  15. */
  16. get socket(): Socket;
  17. constructor(path: string, network?: Networkish, options?: JsonRpcApiProviderOptions);
  18. destroy(): void;
  19. _write(message: string): Promise<void>;
  20. }
  21. //# sourceMappingURL=provider-ipcsocket.d.ts.map