Available on crate feature
intents only.Expand description
High-level transaction intents.
Intents describe what a transaction should accomplish without requiring the caller to
manually manage coin selection or object resolution. When the transaction is built with
TransactionBuilder::build, registered resolvers
communicate with the network to fill in the details.
The built-in intents are Coin (requesting a Coin<T>) and Balance (requesting a
Balance<T>). Both are handled by the same resolver so that mixed requests for the same
coin type are accounted for together.
Structs§
- Balance
- An intent requesting a
Balance<T>of a specific type and amount. - Coin
- An intent requesting a
Coin<T>of a specific type and balance.
Type Aliases§
- Coin
With Balance - Backward-compatible alias for
Coin.