I'm trying to use taquito to call a method in my contract. Note my contract was programmed in SmartPy (if that makes any difference).

I am able to call contract.storage() without any problem.

When I try to call contract.methods.mint(wallet,amount).send({ fee: 30000, gasLimit: 200000 })

I get a 400 bad request. zone-evergreen.js:2828 POST https://carthagenet.smartpy.io/chains/main/blocks/head/helpers/forge/operations 400 (Bad Request)

The contract is deployed here: https://better-call.dev/carthage/KT1WvmH3BSawQyKy2mEfTvxvAuTSLSAtotAc/operations

Console error of call

1 Answer 1


Turns out I was setting the private key incorrectly.. I change to..

      Tezos.setProvider({rpc: environment.network});

and all worked ok!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.