cast wallet sign-auth
NAME
cast-wallet-sign-auth - Sign an EIP-7702 authorization.
SYNOPSIS
cast wallet sign-auth
address
DESCRIPTION
Sign an EIP-7702 authorization for an address.
Note that sign-auth
uses the current nonce as it is not aware of whether you are going to broadcast the authorization from the same or a different sender.
If you are sending the transaction from the same address you will need to either pass the next nonce using the --nonce
flag or alternatively use cast send <to> --auth <address>
to sign and send directly.
OPTIONS
WALLET OPTIONS - RAW:
-i
--interactive <NUM>
Open an interactive prompt to enter your private key. Takes a value for the number of keys to enter.
Defaults to 0
.
--mnemonic-derivation-path <PATHS>
The wallet derivation path. Works with both --mnemonic-path
and hardware wallets.
--mnemonic-indexes <INDEXES>
Use the private key from the given mnemonic index. Used with --mnemonic-paths.
Defaults to 0
.
--mnemonic-passphrase <PASSPHRASE>
Use a BIP39 passphrases for the mnemonic.
--mnemonic <PATHS>
Use the mnemonic phrases or mnemonic files at the specified paths.
--private-key <RAW_PRIVATE_KEY>
Use the provided private key.
--private-keys <RAW_PRIVATE_KEYS>
Use the provided private keys.
Wallet Options - Keystore
--keystore
path
Use the keystore in the given folder or file.
Environment: ETH_KEYSTORE
--account
account-name
Use a keystore from the default keystores folder (~/.foundry/keystores) by its filename.
Environment: ETH_KEYSTORE_ACCOUNT
--interactive
--password
password
The keystore password. Used with --keystore
.
Environment: ETH_PASSWORD
Wallet Options - Hardware Wallet
-t
--trezor
Use a Trezor hardware wallet.
-l
--ledger
Use a Ledger hardware wallet.
Common Options
-h
--help
Prints help information.
EXAMPLES
-
Sign an EIP-7702 authorization using a keystore:
cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keystore keystore.json --interactive
-
Sign an EIP-7702 authorization using a raw private key:
cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --private-key $PRIV_KEY