Loading

transport

Scalar function

Builds a TRANSPORT JSON payload suitable for RPC helpers, normalizing the URL and attaching metadata.

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

transport(VARCHAR, BIGINT)

Requires an explicit chain identifier to avoid relying on remote defaults.

Parameters

Name Type
url VARCHAR
chain_id BIGINT

Returns

Name Type
transport TRANSPORT

transport(VARCHAR)

Accepts a bare host or URL and infers the protocol, defaulting the chain id.

Parameters

Name Type
url VARCHAR

Returns

Name Type
transport TRANSPORT