<p>The error says your contract is over resource budget.</p>
<pre><code> User error:
   The budget was overspent. Final negative state: ({ cpu: -119092 | mem: -400 })
</code></pre>

CC BY-SA 4.0
2023-01-27T07:43:24.960Z
2023-01-27T07:43:24.960Z
Marek Mahut - StakeNuts
<p>I'm  trying to unlock some token at a script address, so I create a tx with cardano-cli transaction build ... this passes successfully, then I sign the tx. It is now ready for submit but when I submit I get this error:</p>
<p><code>Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True) (FailedUnexpectedly [PlutusFailure &quot;\nThe 3 arg plutus script (PlutusScript ScriptHash \&quot;9f8863d5eb3f855c406ff38f29daa84e41ba0f3f1203bbe54275cf5f\&quot;) fails.\nCekError An error has occurred:  User error:\nThe budget was overspent. Final negative state: ({ cpu: -119092 | mem: -400 })</code></p>
<p>After this I get a detail of the Tx followed by a big patch of non-readable text. (This same error also appears in the output of the syncing testnet node I'm running)
Anyone knows what's the issue and how to solve it? Thanks</p>

<plutus><cardano-cli><transaction><script><validator>
Script unlock cannot submit, budget overspent
# Script unlock cannot submit, budget overspent

(Asked by: username_0 on 2021-10-08)

I'm trying to unlock some token at a script address, so I create a tx with cardano-cli transaction build ... this passes successfully, then I sign the tx. It is now ready for submit but when I submit I get this error:

`Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True) (FailedUnexpectedly [PlutusFailure "\nThe 3 arg plutus script (PlutusScript ScriptHash \"9f8863d5eb3f855c406ff38f29daa84e41ba0f3f1203bbe54275cf5f\") fails.\nCekError An error has occurred: User error:\nThe budget was overspent. Final negative state: ({ cpu: -119092 | mem: -400 })`

After this I get a detail of the Tx followed by a big patch of non-readable text. (This same error also appears in the output of the syncing testnet node I'm running)
Anyone knows what's the issue and how to solve it? Thanks

**Tags:** plutus, cardano-cli, transaction, script, validator

---

## 1 answers

### Answer by username_1 on 2023-01-27. Score: 0

The error says your contract is over resource budget.
 User error:
   The budget was overspent. Final negative state: ({ cpu: -119092 | mem: -400 })


---

