Personal Sign, SDK and UNPREDICTABLE_GAS_LIMIT

Hello,

I’m fetching the API to execute a gasless transaction on my smart contract that uses the trustforwarder pattern (_msg.sender). Using the SDK the transaction goes through.

This is the endpoint I’m using: https://api.biconomy.io/api/v2/meta-tx/native

As provided in your example code, I construct the signature first, then pass it in together with the parameters to sendTransaction

I’ve also set gaslimit to 10000000, but I still get UNPREDICTABLE_GAS_LIMIT

The function I’m trying to call is a deposit function that transfers ERC20 tokens

Does anyone has any idea how I could debug? I’m using the

and have inserted the smart contract, abi and methods I want to call and I’m including them in the API call body

Thanks!

3 Likes