attach_transport

Attaches transport authority to a pinned or execution CLIENT so missing state can be fetched without changing the CLIENT's durable state identity.

Example

Needs RPC · RPC required

1
SELECT attach_transport($client, $transport) AS client;
Notebook ready in readonly mode.

API reference

Exact signatures with descriptions, requirements, inputs, returns, and examples.

attach_transport(CLIENT, TRANSPORT) #

Validates the transport against the CLIENT lineage and returns a separately hydrated wrapper.

Inputs

Name Type Use
client CLIENT

Pinned or execution CLIENT whose durable state identity must remain unchanged.

required positional
transport TRANSPORT

TRANSPORT used only to hydrate chain state missing from the local retained state.

required positional

Returns

Name Type
client CLIENT

Hydrated CLIENT. Returns a new CLIENT wrapper with transport authority attached. The input CLIENT is not modified.

Guidance

Hydration does not change identity

attach_transport changes how missing state may be fetched, not which chain, block, or execution state the CLIENT identifies.

  • The source CLIENT remains unchanged.
  • The transport's trusted declared chain id must match the CLIENT lineage; the pinned header is then validated against the provider.
  • Keep credentials in runtime transport configuration; they are not part of durable CLIENT identity.

Category and tags

Tag
Client