Skip to main content

PScriptInfo

info

Introduced in V3 version

Define various contexts in which a script operates

Definition:

export const PScriptInfo = pstruct({
Minting: { currencySym: PCurrencySymbol.type },
Spending: {
utxoRef: PTxOutRef.type,
datum: PMaybe( data ).type
},
Rewarding: { stakeCredential: PCredential.type },
Certifying: {
index: int,
cert: PCertificate.type
},
Voting: {
voter: PVoter.type
},
Proposing: {
index: int,
proposal: PProposalProcedure.type
}
});

Minting​

Context for minting a new asset

currencySym​

type: PCurrencySymbol.type

Spending​

Context for spending a UTXO

utxoRef​

type: PTxOutRef.type

datum​

type: PMaybe( data ).type

Rewarding​

Context for rewarding a participant

stakeCredential​

type: PCredential.type

Certifying​

Context for certifying actions or events

index​

type: TermInt

cert​

type: PCertificate.type

Voting​

Context for casting a vote

voter​

type: PVoter.type

Proposing​

Context for proposing a new procedure or action

index​

type: TermInt

proposal​

type: PProposalProcedure.type