Skip to main content

Module curl_transport

Module curl_transport 

Source
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ยง

CurlTransport
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.