Hey there,
I wanna send a signedTransaction from a contract because I wanna create a marketplace.
const gasLimitHex = this.web3Js.utils.toHex(3000000);
let gasPrice = await this.web3Js.eth.getGasPrice();
this.nonce = await this.web3Js.eth.getTransactionCount(this.walletAddress);
const transactionObject = {
nonce: this.web3Js.utils.toHex(this.nonce),
gasPrice: hexGasPrice,
gasLimit: gasLimitHex,
contractAddress: "0x20C05F85df725a3Fe62b2d7F3B0CF27b3a3BFE5c",
from: this.walletAddress,
functionName: "setApprovalForAll",
abi: NFT_ABI,
params: {
operator: receiver,
approved: true
}
};
let hexObject = new ethereumjs.Tx(transactionObject);
Error:
RPC Error: intrinsic gas too low
Object { code: -32000, message: "intrinsic gas too low" }
Why am i getting that error ?