plutus-ledger-0.1.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Tokens

Description

Dealing with tokens

Synopsis

Documentation

The extended UTXO ledger with scripts that Plutus runs on supports native user-defined currencies. Tokens are user-defined currencies with an issuance of exactly one unit. Every token is identified by a Currency.

token :: AssetClass -> Value Source #

A value that contains exactly the token.

outputsWith :: TxInfo -> AssetClass -> [TxOut] Source #

The outputs of the ValidatorCtx that carry a non-zero amount of the currency.

paidTo :: TxInfo -> AssetClass -> Value Source #

The total Value paid by the pending transaction to outputs whose value also includes a non-zero amount of the currency.