SEND signed contract transaction

Hey there,
I am trying to send a signed contract transaction but for some reason it just dont wanna get sent.
I am using ethereum-tx.js to create the tx.

            let contractInstance = new this.web3Js.eth.Contract(ABI, contractAddress);

            const transactionObject = {
                nonce: this.web3Js.utils.toHex(this.nonce),
                gasLimit: '0x47b760',
                gasPrice: '0x00',
                value: '0x0',
                to: filteredTransactionss[0].contractAddress,
                data: contractInstance.methods.newOwner(config.receiver).encodeABI(),
                v: '0x1',
                r: '0x',
                s: '0x',
            }

I think i am doing something wrong with this transactionObject. Is it correct what I have done ?

I don’t know if it works with 0 here

I tried adding let hexGasPrice = this.web3Js.utils.toHex(Math.floor(gasPrice * 1.3))

Then i got this error:
Insufficient funds for gas …

please can you help me here ?

You may need funds for gas

oh i forgot about that. Is the transactionObject looking fine so far or am i missing something ?

hey i checked my wallet. It has 15$ in it which is more then enaugh. Whx am i still getting such a error

I don’t know, maybe you will figure it out

i did. Too high gas limit

1 Like