cast-send - Sign and publish a transaction.
cast send
[options] to [sig] [args...]
Sign and publish a transaction.
The destination (to) can be an ENS name or an address.
{{#include sig-description.md}}
{{#include tx-options.md}}
--cast-async
Do not wait for the transaction receipt if it does not exist yet.
Environment: CAST_ASYNC
-c
confirmations
--confirmations
confirmations
Wait a number of confirmations before exiting. Default: 1
.
{{#include ../common/wallet-options.md}}
{{#include ../common/rpc-options.md}}
{{#include ../common/etherscan-options.md}}
{{#include ../common/display-options.md}}
{{#include common-options.md}}
-
Send some ether to Vitalik using your Ledger:
cast send --ledger vitalik.eth --value 0.1ether
-
Call
deposit(address token, uint256 amount)
on a contract:cast send --ledger 0x... "deposit(address,uint256)" 0x... 1