Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/web3/packages/web3-providers-http/types/index.d.ts>HttpProvider

Deno / TypeScript to Ethereum Connector
Latest
class HttpProvider
import { HttpProvider } from "https://deno.land/x/web3@v0.11.1/packages/web3-providers-http/types/index.d.ts";

Constructors

new
HttpProvider(host?: string, options?: HttpProviderOptions)

Properties

optional
agent: HttpProviderAgent
connected: boolean
optional
headers: HttpHeader[]
host: string
timeout: number
withCredentials: boolean

Methods

disconnect(): boolean
send(payload: object, callback?: (error: Error | null, result: JsonRpcResponse | undefined) => void): void