[**@tevm/jsonrpc**](../README.md) *** [@tevm/jsonrpc](../globals.md) / http # Function: http() > **http**\<`rpcSchema`, `raw`\>(`url?`, `config?`): `HttpTransport`\<`rpcSchema`, `raw`\> Defined in: node\_modules/.pnpm/viem@2.49.3\_bufferutil@4.1.0\_typescript@6.0.3\_utf-8-validate@5.0.10\_zod@4.4.3/node\_modules/viem/\_types/clients/transports/http.d.ts:52 ## Type Parameters | Type Parameter | Default type | | ------ | ------ | | `rpcSchema` *extends* `RpcSchema` \| `undefined` | `undefined` | | `raw` *extends* `boolean` | `false` | ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url?` | `string` | URL of the JSON-RPC API. Defaults to the chain's public RPC URL. | | `config?` | `HttpTransportConfig`\<`rpcSchema`, `raw`\> | - | ## Returns `HttpTransport`\<`rpcSchema`, `raw`\> ## Description Creates a HTTP transport that connects to a JSON-RPC API.