safe-core-sdk icon indicating copy to clipboard operation
safe-core-sdk copied to clipboard

MultiSend functionality is not documented

Open PaulRBerg opened this issue 11 months ago • 6 comments

I've seen the MultiSend functionality mentioned in this StackExchange answer.

I then headed to the docs for the Protocol Kit, and I couldn't find any documentation on MultiSend, i.e., no documentation for encodeMultiSendData.

MultiSend is briefly mentioned in the article about Transaction Builder, but there's zero guidance provided for how to actually use it:

The Safe can use a so called MultiSend library to enable this transaction batching (example of Ethereum Multisend - v1.1.1)

PaulRBerg avatar Mar 24 '25 11:03 PaulRBerg

createTransaction method is able to receive a standalone transaction or an array. If an array is given, the MultiSend transaction will be automatically created. encodeMultiSendData is more a helper/internal method, not the intended way of developer to use the MultiSend.

https://docs.safe.global/reference-sdk-protocol-kit/transactions/createtransaction

dasanra avatar Mar 24 '25 12:03 dasanra

Thanks @dasanra — so in the code shared in this StackExchange post, the Safe SDK will use MultiSend?

If yes, could you help us with an answer there, please?

PaulRBerg avatar Mar 24 '25 12:03 PaulRBerg

In that post you are trying to use a different SDK, the Safe Apps SDK.

https://github.com/safe-global/safe-apps-sdk/blob/934b4ea74a17e4b6627e15b0d2acecd6179c2afc/packages/safe-apps-sdk/src/txs/index.ts#L63

This will also trigger a Multisend transaction when running in the Safe Wallet context as a Safe App. So I need to understand first, are you creating a standalone app that interacts with Safe contracts (purpose of the Core SDK) or are you tweaking a frontend app to run as Safe App in the Safe Wallet context?

dasanra avatar Mar 24 '25 13:03 dasanra

We have a Safe app that runs in the Safe Wallet context as an iframe: app.sablier.com

Can you please add me on Telegram (same username as here), so I can add you to our TG chat group Sablier <> Safe?

P.S. I think you answered my other question I posted on StackExchange: What is the difference between safe-apps-sdk and safe-core-sdk?

PaulRBerg avatar Mar 24 '25 13:03 PaulRBerg

I see you took this to Telegram, was there any update here?

JamesEarle avatar Jun 19 '25 01:06 JamesEarle

We haven't talked much about this on Telegram.

I still consider that the MultiSend functionality deserves more attention in the Safe docs.

PaulRBerg avatar Jun 19 '25 11:06 PaulRBerg