unlock-protocol / unlock

Ʉnlock is a protocol for memberships built on a blockchain.
https://unlock-protocol.com
MIT License
845 stars 251 forks source link

Add support for "transaction" building in unlock-js #15077

Open julien51 opened 1 week ago

julien51 commented 1 week ago

UnlockJs includes a WalletService which can be used to send transactions. However, in more an more contexts (farcaster Frames, cross-chain purchases), we need to "build" the callData, without actually sending the transaction(s). Let's add support for transaction building in unlock-js (probably to Web3Service) for any of the transactions sent by WalletService and then refactor WalletService to just use Web3service to build the transactions and then send them!

julien51 commented 3 days ago

This is also going to be useful for @0xTxbi so we can do embedded wallet transactions with Privy!