| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ledger.Tokens
Description
Dealing with tokens
Synopsis
- token :: AssetClass -> Value
- outputsWith :: TxInfo -> AssetClass -> [TxOut]
- paidTo :: TxInfo -> AssetClass -> Value
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.