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!
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 inunlock-js
(probably to Web3Service) for any of the transactions sent byWalletService
and then refactorWalletService
to just useWeb3service
to build the transactions and then send them!