Skip to content

Spike into bulk tx signing via EIP 7702 & 4337 smart wallet upgrade #148

@premiumjibles

Description

@premiumjibles

Summary

We want to the agent to be able to trigger multiple transactions, and as much as possible avoid the user having to sign every individual tx. We have two potential approaches to this

Approach 1

This is our "ideal" and the first one we want to spike into. EIP 7702 & 4337 offer a method to "upgrade" wallets to become "smart wallets" that can bulk sign transactions. Where this gets hairy is, not everyone is going to want their wallets permanently upgraded. We need to investigate if it's possible to temporarily upgrade a wallet, perform our tx signing, then downgrade the wallet safely.

Approach 2

If this spike fails, we want to create a ticket to spike into approach 2. That's utilising embedded wallets to avoid bulk signing. If we use embedded wallets then we have full control and can sign everything ourselves. We'll need to see if for a bulk tx, we can perform a kind of "handover" to the embedded wallet so that it can handle all the in between tx's and then give the results back.

Helpful stuff

https://docs.metamask.io/smart-accounts-kit

https://docs.metamask.io/smart-accounts-kit/get-started/smart-account-quickstart

https://www.youtube.com/watch?v=ZMaHhOFvYXk

https://www.youtube.com/watch?v=94VhTY-1ZsI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions