Local Chain ID in Cloud Function web3ByChain("?")

I have a cloud function that needs to sign a transaction, but when developing locally (Truffle x Ganache) it wonโ€™t accept the

const web3 = Moralis.web3ByChain("0x1337");

Can you use local chains in web3ByChain?

1 Like

Iโ€™m not sure if it is possible to use local devchain with web3ByChain

1 Like

Why is your sign a transaction can succeed, but I have been prompting failure.

What is the error that you got?

transactionBody = {
    to: char_contract_address,
    //nonce: nonceOperator,
    data: functionCall,
    gas: 100000,
    gasPrice: web3.utils.toWei("3", "gwei"),
  };

This is the correct GAS setting, now can run

Can you make a video about GAS?