5afe / safe-relay-service

Relay Tx Service for Gnosis Safe
MIT License
59 stars 32 forks source link

How to propose and sign a transaction with Safe4337Module #600

Closed faisal-anwar825 closed 4 months ago

faisal-anwar825 commented 4 months ago

I am using a safe that has three owners to send funds to different wallets. Previously i had everything working fine but since i had to maintain the balance in owner wallets in order to pay gas fee. I am trying to implement the relay with Safe4337Module so that the fee is deducted from within the safe itself.

Issue is i couldn't find any documentation about how to propose and sign a transaction from a safe that has multiple owners. I need to implement this for both native and non native tokens. i am using Nestjs and safe contract version "1.4.1+L2".

Could someone from the team point me to the right documentation or code.

Uxio0 commented 4 months ago

Relay is not maintained anymore, but our transaction service allows signing and collecting signatures for 4337. You can take a look at https://github.com/safe-global/safe-transaction-service/tree/main/safe_transaction_service/account_abstraction

faisal-anwar825 commented 4 months ago

Is this code available in typescript?

Uxio0 commented 4 months ago

I encourage you to use our SDK, it supports 4337 and it's written on TypeScript: https://github.com/safe-global/safe-core-sdk

faisal-anwar825 commented 4 months ago

I am actually using sdk and i need the documentation that guides me to perform this transaction using relay kit. All i could find is this link https://docs.safe.global/sdk/relay-kit/guides/4337-safe-sdk which i am not sure addresses the issue i am facing.

Uxio0 commented 4 months ago

You should go here for developer support: https://ethereum.stackexchange.com/questions/tagged/safe-core