Learn how to use variables in Numscript to make your scripts more flexible and reusable
POST /{ledger}/transactions
endpoint.
The script.vars
field in the request body is used to inject variable values:
_
.
They can contain letters, digits, and _
.
_
.
They can contain letters, digits, _
, and :
.
/
.
balance(_account_, _asset_)
statement.
The balance pulled needs to be non-negative, or the script will fail to execute. Here is an example:
15%
15/100