Expand description
Transport that outputs equivalent curl commands instead of making RPC requests.
Re-exportsยง
use alloy_json_rpc::RequestPacket;๐use alloy_json_rpc::ResponsePacket;๐use alloy_rpc_types_engine::Claims;๐use alloy_rpc_types_engine::JwtSecret;๐use alloy_transport::TransportError;๐use alloy_transport::TransportFut;๐use eyre::Context;๐use serde_json::Value;๐use tower::Service;๐use url::Url;๐
Structsยง
- Curl
Transport - A transport that prints curl commands instead of executing RPC requests.
Functionsยง
- append_
jwt_ ๐auth - Appends a JWT Authorization header to a curl command.
- build_
jwt ๐ - Build a JWT using a secret
- generate_
curl_ command - Generates a curl command for an RPC request.
- shell_
escape ๐ - Escapes a string for use in a single-quoted shell argument.