UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

13 lines 725 B
import type { JsonRpcRequest, JsonRpcResponse } from "../../../../../../types/providers.js"; import { SenderHandler } from "./sender.js"; /** * This class automatically retrieves and caches the first available account from the connected provider. * On the first supported request, fetches and caches `eth_accounts` so callers don't need to set `from` manually. * If `eth_accounts` responds with a non-array, it returns a JSON-RPC error. */ export declare class AutomaticSenderHandler extends SenderHandler { #private; handle(jsonRpcRequest: JsonRpcRequest): Promise<JsonRpcRequest | JsonRpcResponse>; protected getSender(): Promise<string | undefined>; } //# sourceMappingURL=automatic-sender-handler.d.ts.map