Skip to content

Commit

Permalink
feat: EIP-7702 examples (#1274)
Browse files Browse the repository at this point in the history
* feat: EIP-7702 examples

* fix doc

* Update src/reference/cast/cast-send.md

Co-authored-by: Oliver <[email protected]>

* Update src/reference/cast/cast-send.md

Co-authored-by: Oliver <[email protected]>

---------

Co-authored-by: Oliver <[email protected]>
  • Loading branch information
klkvr and onbjerg authored Sep 3, 2024
1 parent f54653d commit 47d26ac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/reference/cast/cast-send.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ The destination (*to*) can be an ENS name or an address.
cast send 0x... 0x68656c6c6f20776f726c64
```

5. Sign an EIP-7702 authorization and attach it to a transaction from a different sender:
```sh
cast send $(cast az) --private-key <sender-pk> --auth $(cast wallet sign-auth <address> --private-key <delegator-pk>)
```

6. Send an EIP-7702 transaction delegating the sender to `<address>`:
```sh
cast send $(cast az) --auth <address>
```


### SEE ALSO

[cast](./cast.md), [cast call](./cast-call.md), [cast publish](./cast-publish.md), [cast receipt](./cast-receipt.md), [cast mktx](./cast-mktx.md), [struct encoding](../../misc/struct-encoding.md)

0 comments on commit 47d26ac

Please sign in to comment.