Skip to content

http

http(url?, config?): HttpTransport

Parameters

url?: string

URL of the JSON-RPC API. Defaults to the chain’s public RPC URL.

config?: HttpTransportConfig

Returns

HttpTransport

Description

Creates a HTTP transport that connects to a JSON-RPC API.

Defined in

node_modules/.pnpm/viem@2.16.2_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/clients/transports/http.d.ts:44