Extracts variable names from angle-bracket references inside a CashAssembly evaluation.
Inside an evaluation like $(<pubkeyHash> <fee>), variables are referenced as <name>.
This pattern captures the name between the brackets. The global flag g allows iterating
over every variable reference in a single evaluation string.
For example, running this against $(<pubkeyHash> <fee>) would return the variable names
["pubkeyHash", "fee"].
Extracts variable names from angle-bracket references inside a CashAssembly evaluation.
Inside an evaluation like
$(<pubkeyHash> <fee>), variables are referenced as<name>. This pattern captures the name between the brackets. The global flaggallows iterating over every variable reference in a single evaluation string.For example, running this against
$(<pubkeyHash> <fee>)would return the variable names["pubkeyHash", "fee"].