Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: EIP-7702 examples #1274

Merged
merged 4 commits into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading