Abstract
This proposal defines complementary JSON-RPC methods to EIP-5792’s wallet_sendCalls
. While wallet_sendCalls
is used for an app to submit calls
to be signed and submitted in a wallet’s interface, the methods in this proposal are for an application to request prepared calls (where “prepared” depends on the wallet implementation) to be signed and submitted by the application itself.
Motivation
With more recent developments in account abstraction and session keys, there is an increasing need for applications to be able to sign and submit operations without switching to a wallet interface (e.g. browser extension). This can be tricky because different account implementations might have different call data encoding, signature formats, etc. To remedy this, we need a way for apps to know how to submit an operation for any account implementation.
See more: Add ERC: Wallet Call Preparation API by lukasrosario · Pull Request #758 · ethereum/ERCs · GitHub