-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: document
cast send --auth
and cast wallet sign-auth
(EIP-7…
…702) (#1441) * add sign-auth reference * add --auth to cast send and cast wallet sign-auth docs
- Loading branch information
1 parent
3574884
commit c6f2923
Showing
2 changed files
with
92 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## 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](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7702.md) 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: | ||
|
||
```sh | ||
cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keystore keystore.json --interactive | ||
``` | ||
|
||
2. Sign an EIP-7702 authorization using a raw private key: | ||
```sh | ||
cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --private-key $PRIV_KEY | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
[cast](./cast.md), [cast wallet](./cast-wallet.md) |