Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1.23 KB

cast-wallet-sign-auth.md

File metadata and controls

44 lines (25 loc) · 1.23 KB

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

{{#include ../common/wallet-options-raw.md}}

{{#include ../common/wallet-options-keystore.md}}

{{#include ../common/wallet-options-hardware.md}}

{{#include common-options.md}}

EXAMPLES

  1. Sign an EIP-7702 authorization using a keystore:

    cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keystore keystore.json --interactive
  2. Sign an EIP-7702 authorization using a raw private key:

    cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --private-key $PRIV_KEY

SEE ALSO

cast, cast wallet