cast-wallet-sign-auth - Sign an EIP-7702 authorization.
cast wallet sign-auth
address
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.
{{#include ../common/wallet-options-raw.md}}
{{#include ../common/wallet-options-keystore.md}}
{{#include ../common/wallet-options-hardware.md}}
{{#include common-options.md}}
-
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