Developing a custom Execution Module #516
-
Hi, for our project we would like to add a custom Execution Module to the Smart Account. We want to do a few things, but mainly we want to be able to receive payment from users' smart account like a BNPL model. Either way, we were looking for some examples or any documentation on how to implement a custom execution module, but was told there aren't any. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
i. I think you could issue a session that is allowed to transfer erc20 / eth and make use of it for PL ii. execution module -> once gets plugged in it has to call execTransactionFromModule on the smart account. you can implement some access control in this module limited to allowed currency transfer as module can call anything on SA otherwise. flow could be like |
Beta Was this translation helpful? Give feedback.
i. I think you could issue a session that is allowed to transfer erc20 / eth and make use of it for PL
ii. execution module -> once gets plugged in it has to call execTransactionFromModule on the smart account. you can implement some access control in this module limited to allowed currency transfer as module can call anything on SA otherwise.
flow could be like
your admin eoa -> some exec method on executor -> execTxFromModule on SA -> erc20/eth transfer