cast publish
NAME
cast-publish - Publish a raw transaction to the network.
SYNOPSIS
cast publish
[options] tx
DESCRIPTION
Publish a raw pre-signed transaction to the network.
OPTIONS
Publish Options
--async
--cast-async
Do not wait for a transaction receipt.
Environment: CAST_ASYNC
RPC Options
--rpc-url
url
The RPC endpoint. Accepts a URL or an existing alias in the [rpc_endpoints] table, like mainnet
.
Environment: ETH_RPC_URL
--flashbots
Use the Flashbots RPC URL (https://rpc.flashbots.net)
--flashbots
Use the Flashbots RPC URL (https://rpc.flashbots.net).
Common Options
-h
--help
Prints help information.
EXAMPLES
-
Publish a pre-signed transaction:
cast publish --rpc-url $RPC $TX
-
Publish a pre-signed transaction with flashbots.
cast publish --flashbots $TX