Send transaction with scriptTransactionRequest()

i trying send an transaction script by an predicate, but receive an error ‘PredicateExhaustedGas’, but I have 0.330 ETH on predicate

  • network: betha-4
  • fuelTS: 0.55.0

I verified inputs and outputs but didant find problems

My transaction
{
    "gasPrice": "0x1",
    "gasLimit": "0x2710",
    "maturity": 0,
    "inputs": [
        {
            "id": "0x58bbcb8ed35709a1edbaf03686bfb0845be18c7ba004a68407e2de07fd33f59800",
            "amount": "0x1c9c380",
            "assetId": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "owner": "0xbdc2f0ef068e9b657f940e3b0c0eeb81dffb7e5f9b4eeb8d53ce6df793d36e11",
            "maturity": 0,
            "blockCreated": "0x17df23",
            "txCreatedIdx": "0x1",
            "type": 0,
            "txPointer": "0x00000000000000000000000000000000",
            "witnessIndex": 0,
            "predicate": ${predicateBin},
            "predicateData": "0x"
        }
    ],
    "outputs": [
        {
            "type": 0,
            "to": "0xb069ec191abe9e0fe087c084df3a670e235244c801e7708318f06b1c54faef88",
            "amount": "0x7270e00",
            "assetId": "0x0000000000000000000000000000000000000000000000000000000000000000"
        },
        {
            "type": 2,
            "to": "0xbdc2f0ef068e9b657f940e3b0c0eeb81dffb7e5f9b4eeb8d53ce6df793d36e11",
            "assetId": "0x0000000000000000000000000000000000000000000000000000000000000000"
        }
    ],
    "witnesses": [
        "0x"
    ],
    "type": 0,
    "script": "0x24000000",
    "scriptData": "0x"
}

that’s my returned error

Error

Hi there!
I’m not sure about this issue.
Let me escalate it.

1 Like

i believe to this problem going occurred in simulate transactions, I tried two different methods and get this probem

@guimroque would it be possible for you to share the code you are using to send the transaction? I might be able to find something useful there.

Of course

Simulate transaction

Can you share the predicates code and the output of fuelup show?
thanks! :palm_tree:

Can you also share the code where you are calling sendTransaction from? I want to see what your tx looks like and how you are preparing it.