Issue with Transactions Using Concordium Mobile Wallet

Hi Team,

I am currently working on a project that involves transactions using the Concordium blockchain. I am using the following versions of your SDKs:

@concordium/browser-wallet-api-helpers: 2.5.0
@concordium/web-sdk: ^3.5.0
These versions work perfectly with the browser wallet. However, I encounter errors when attempting to perform the same transactions using the mobile wallet.

Attaching screenshot of error and code


image_2024_07_19T06_12_13_476Z

Hi Subhajit.
Can you please clarify what you mean by “attempting to perform the same transactions using the mobile wallet”? Do you try to invoke the transaction through WalletConnect?

like contract initialisation

Are you trying to use WalletConnect?

yes we are using WalletConnect

Please, try signAndSendTransaction method instead of sendTransaction

getting same error
image_2024_07_19T12_01_21_098Z

Even getting error from browser wallet also this time

Got it, I’ll ask someone with more experience in Web SDK to help you

You might want to check out the wallet-connectors library. It has an interface to sign and send transactions via walletConnect.

In most of our dapps we use the wallet-connectors library and the react-components library if we want to build a dapp front-end that should work with both (browser wallet and mobile wallet).