<p>I am trying to implement <a href="https://github.com/OnChainLabs/Martify" rel="nofollow noreferrer">Martify</a> contract using Cardano serialization lib. When I submit the transaction I get the following error. Can someone tell me what it mean?</p>
<p><code>transaction submit error ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True) (FailedUnexpectedly [PlutusFailure \&quot;\\nThe 3 arg plutus script (PlutusScript ScriptHash \\\&quot;a306c90d19adfd7302e6d0a452aed3bd1d7f08e5b291d1add3d8e4fb\\\&quot;) fails.\\nCekError An error has occurred:  User error:\\nThe provided Plutus code called 'error'.\\nThe data is: Constr 0 [B \\\&quot;\\\&quot;,I 100000000,B \\\&quot;B\\\\DLEGO\\\\251\\\\142\\\\170Lpz6u\\\\155Tf\\\\223\\\\208\\\\173X]\\\\237\\\\143X\\154%\\169\\n\&quot;,B \&quot;\&quot;]\nThe redeemer is: Constr 0 []\nThe context is:\nPurpose: Spending (TxOutRef {txOutRefId = 0ba3</code></p>

CC BY-SA 4.0
2021-12-07T02:27:45.253Z
I am  impressed since it appears that the shared repo is for submitting using cardano Cli! and Nami specs  don't match cardano-cli specs..but the error seems at a first look to be bassed on executing the plutus scripts... have you tried with this same transaction in the cli? to check if it is related to cardano serialization lib or to the contract perse?
Alicia Basilio
CC BY-SA 4.0
2021-12-07T06:02:04.993Z
I did try the same transaction through Cardano-cli which seems to be working perfectly fine. But when using Cardano-serialization-lib it keep on giving me this script failed eeror
Dawar Ejaz
CC BY-SA 4.0
2021-12-07T20:27:14.193Z
ive read in Alessandro Twitter that Nami does not suport plutus contracts. But i am not sure why it is the case.. since is is a normal Tx  just with redemer and plutus scripts. so you took the plutus script, and used the cardano serialization lib to make the rest of the transaction?.. Maybe you should try to sign it using your prv keys in the library and send once int is signed.
Alicia Basilio
CC BY-SA 4.0
2021-12-20T00:18:07.053Z
I'm experiencing the same error. No idea what I'm doing wrong...
Displee
CC BY-SA 4.0
2021-12-22T13:34:34.473Z
Lol I solved this issue. I was using a wrong tx id in my script utxo and the address in the datum was wrong too. Had to use `ownerAddress.payment_cred().to_keyhash()?.to_bytes()`.
Displee
CC BY-SA 4.0
2022-01-14T05:19:06.620Z
@Displee Can you share your implementation with me? And how did you identify these errors, did you use any debugging technique or just hit and try .
Dawar Ejaz
CC BY-SA 4.0
2022-02-27T14:01:28.933Z
Sorry for the late reply @DawarEjaz. Here's the full code: https://pastebin.com/DEzY3vCi
Displee
CC BY-SA 4.0
2022-08-01T10:42:30.633Z
I met the same issue when the plutus script is 10 bytes long. Do you meet that issue, and can you repost your code example to solve that? Tks so much
Nguyen Huy Duc
CC BY-SA 4.0
2022-11-06T02:33:35.450Z
@Displee Can you please share your code as an aswer to this question? Thank you!
Falcon Stakepool
CC BY-SA 4.0
2022-11-09T18:32:38.670Z
Here is the full code: https://gist.github.com/Displee/63ca898e991e61786825c78764371444
Displee
<nami-wallet><cardano-serialization-lib>
Error while submitting Transaction through cardano-serialization-lib
# Error while submitting Transaction through cardano-serialization-lib

(Asked by: username_0 on 2021-12-06)

I am trying to implement [Martify](https://github.com/OnChainLabs/Martify) contract using Cardano serialization lib. When I submit the transaction I get the following error. Can someone tell me what it mean?

`transaction submit error ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True) (FailedUnexpectedly [PlutusFailure \"\\nThe 3 arg plutus script (PlutusScript ScriptHash \\\"a306c90d19adfd7302e6d0a452aed3bd1d7f08e5b291d1add3d8e4fb\\\") fails.\\nCekError An error has occurred: User error:\\nThe provided Plutus code called 'error'.\\nThe data is: Constr 0 [B \\\"\\\",I 100000000,B \\\"B\\\\DLEGO\\\\251\\\\142\\\\170Lpz6u\\\\155Tf\\\\223\\\\208\\\\173X]\\\\237\\\\143X\\154%\\169\\n\",B \"\"]\nThe redeemer is: Constr 0 []\nThe context is:\nPurpose: Spending (TxOutRef {txOutRefId = 0ba3`

**Tags:** nami-wallet, cardano-serialization-lib
> **Comments:**
> **username_1**: I am  impressed since it appears that the shared repo is for submitting using cardano Cli! and Nami specs  don't match cardano-cli specs..but the error seems at a first look to be bassed on executing the plutus scripts... have you tried with this same transaction in the cli? to check if it is related to cardano serialization lib or to the contract perse?  
> **username_0**: I did try the same transaction through Cardano-cli which seems to be working perfectly fine. But when using Cardano-serialization-lib it keep on giving me this script failed eeror  
> **username_1**: ive read in Alessandro Twitter that Nami does not suport plutus contracts. But i am not sure why it is the case.. since is is a normal Tx  just with redemer and plutus scripts. so you took the plutus script, and used the cardano serialization lib to make the rest of the transaction?.. Maybe you should try to sign it using your prv keys in the library and send once int is signed.  
> **username_2**: I'm experiencing the same error. No idea what I'm doing wrong...  
> **username_2**: Lol I solved this issue. I was using a wrong tx id in my script utxo and the address in the datum was wrong too. Had to use `ownerAddress.payment_cred().to_keyhash()?.to_bytes()`.  
> **username_0**: @Displee Can you share your implementation with me? And how did you identify these errors, did you use any debugging technique or just hit and try .  
> **username_2**: Sorry for the late reply @DawarEjaz. Here's the full code: https://pastebin.com/DEzY3vCi  
> **username_3**: I met the same issue when the plutus script is 10 bytes long. Do you meet that issue, and can you repost your code example to solve that? Tks so much  
> **username_4**: @Displee Can you please share your code as an aswer to this question? Thank you!  
> **username_2**: Here is the full code: https://gist.github.com/Displee/63ca898e991e61786825c78764371444  

---

## 0 answers

