import { SingleOrBatchRequest , SingleOrBatchResponse , Web3Callback , } from "../types" ; import { callWhenDone } from "../util/promises" ; import { SendPayloadFunction } from "./sendPayload" ; /**
 * Returns a "provider" which can be passed to the Web3 constructor.
 */ export function makeAlchemyHttpProvider ( sendPayload ) { function send ( payload , callback ) { callWhenDone ( sendPayload ( payload ) , callback ) ; } return { send } ; }