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.
Overloads
http_transport(VARCHAR, BIGINT)
Specify both URL and explicit chain id to avoid relying on upstream discovery.
Parameters
| Name | Type |
|---|---|
| url | VARCHAR |
| chain_id | BIGINT |
Returns
| Name | Type |
|---|---|
| transport | TRANSPORT |
http_transport(VARCHAR)
Infers protocol and defaults headers when only the endpoint URL is supplied.
Parameters
| Name | Type |
|---|---|
| url | VARCHAR |
Returns
| Name | Type |
|---|---|
| transport | TRANSPORT |
http_transport(VARCHAR, BIGINT, JSON)
Allows manual JSON overrides. Config options: timeout_ms, retry_count, retry_delay_ms, verify_ssl, max_block_range (for get_logs pagination), requests_per_second (RPS limit), max_concurrent (parallel connections).
Parameters
| Name | Type |
|---|---|
| url | VARCHAR |
| chain_id | BIGINT |
| config | JSON |
Returns
| Name | Type |
|---|---|
| transport | TRANSPORT |