Deserialize string key-value pairs to typed parameters.
Get all possible spending paths for the current context. Returns empty array if no paths are available.
Useful for showing users which spending options exist regardless of current spendability.
Get all currently spendable paths. Returns empty array if no paths are available.
Select the preferred spending path based on contract state and context. Returns the best available path (e.g., collaborative over unilateral).
PathSelection if a viable path exists, null otherwise
Serialize typed parameters to string key-value pairs.
Handler for a specific contract type.
Each contract type (default, vhtlc, etc.) has a handler that knows how to:
Example