Loading

http_transport

Scalar function

Creates a TRANSPORT JSON blob backed by the HTTP client, carrying base timeouts and headers.

1
-- Build an HTTP transport for a local Anvil node
2
SELECT http_transport('http://127.0.0.1:8545', 31337) AS transport;
Notebook ready in readonly mode.

http_transport(VARCHAR, BIGINT)

Specify both URL and explicit chain id to avoid relying on upstream discovery.

Parameters

NameType
urlVARCHAR
chain_idBIGINT

Returns

NameType
transportTRANSPORT

http_transport(VARCHAR)

Infers protocol and defaults headers when only the endpoint URL is supplied.

Parameters

NameType
urlVARCHAR

Returns

NameType
transportTRANSPORT

http_transport(VARCHAR, BIGINT, JSON)

Allows manual JSON overrides (e.g., custom headers or rate limits).

Parameters

NameType
urlVARCHAR
chain_idBIGINT
configJSON

Returns

NameType
transportTRANSPORT