"Error: gasPrice(0) is lower than the required 1"

Trying to call a function in my smart contract from the TS SDK and getting this error: “Error: gasPrice(0) is lower than the required 1”

How do I fix this?

1 Like

The gas price needs to be 1, and you can pass in your gas amount in the txParams when you call your function:

await contract.functions.create_event(maxCap, deposit, eventName).txParams({gasPrice: 1}).call();

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.