how to create PlutusData for json #163
Closed
mailtodanish
started this conversation in
General
Replies: 1 comment 2 replies
-
As explained here, this question is better suited for cardano-serialization-lib devs. I never created any Plutus transactions, but you can try this: import { CSL } from '@cardano-sdk/core';
const plutusList = CSL.PlutusList.new();
plutusList.add(CSL.PlutusData.new_bytes(Buffer.from('3f7826896a48c593598465a096d63606ceb8206', 'hex')));
plutusList.add(CSL.PlutusData.new_integer(CSL.BigInt.from_str('1888')));
plutusList.add(CSL.PlutusData.new_integer(CSL.BigInt.from_str('1')));
CSL.PlutusData.new_constr_plutus_data(CSL.ConstrPlutusData.new(CSL.Int.new_i32(0), plutusList)); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to create plutusData for below json
Beta Was this translation helpful? Give feedback.
All reactions