Skip to content

Commit

Permalink
feat: EIP-7702 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Sep 2, 2024
1 parent f54653d commit 4a58873
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 address:
```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 authorizing `<address>` to act on your behalf:
```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 4a58873

Please sign in to comment.