Expand description
Runtime context shared by every command.
Builds the QuicknodeSdk from GlobalArgs and attaches an OutputCtx.
Structs§
- Ctx
- Global
Args - Top-level flags inherited by every subcommand.
Functions§
- sdk_
config - Base SDK config shared by every construction site (
Ctx::from_globaland theauthcommands): the API key plus the CLIUser-Agent. Custom headers inHttpConfigoverride SDK-managed headers of the same name, which is the SDK’s supported way to replace its auto-generatedUser-Agent. - sdk_
config_ with_ base - Like
sdk_configbut also honors an optional--base-urloverride. Used by theauthcommands, which build the SDK outsideCtx. - user_
agent - The
User-Agentsent with every API request. Mirrors the SDK’s own shape (quicknode-sdk-<lang>/<ver> (<os>-<arch>; …)) with the CLI as the product:quicknode-cli/<version> (<os>-<arch>).