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.

Source

node_modules/.pnpm/viem@2.13.7_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@6.0.4_zod@3.23.8/node_modules/viem/_types/clients/transports/http.d.ts:45