Skip to content

Datum for a NFT smart contract #86

Answered by satran004
ofekron33 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ofekron33,

If i understand correctly, PlutusData is the interface that resemebles the Datum.

Yes, PlutusData is the main interface which is used to represent both Datum and Redeemer data . And as you mentioned, BigIntPlutusData, BytesPlutusData, ListPlutusData, MapPlutusData, ContrPlutusData are different implementations and only supported types in datum or redeemers according to the spec.

You can check cbor serialization spec here for more details https://github.com/input-output-hk/cardano-ledger/blob/master/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L274

I thought on using the list plutus data but that is a problem since our datum needs to have multiple different datatypes …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ofekron33
Comment options

Answer selected by ofekron33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants