Ledger 3.0 ships a single Numscript interpreter — the portable one — so there is no interpreter to choose: no runtime field on a transaction request and no ledger.experimental-* server setting to turn on.
Every experimental feature is available, and the server restricts none of them. Each script opts in to the ones it uses by declaring a #![feature("...")] pragma before the rest of the script, so a feature is enabled per script rather than per request or per cluster. Declaring #![feature("experimental-oneof")], for example, makes oneof available to that script alone.
| Feature | Pragma | What it does |
|---|---|---|
| OneOf | experimental-oneof | Conditional routing based on availability |
| Account interpolation | experimental-account-interpolation | Dynamic addresses such as @escrow:$order_id |
| Mid-script function calls | experimental-mid-script-function-call | Query balances during execution |
| Overdraft function | experimental-overdraft-function | Dynamic overdraft calculation |
| get_asset | experimental-get-asset-function | Extract the asset from a monetary value |
| get_amount | experimental-get-amount-function | Extract the amount from a monetary value |
| Asset colors | experimental-asset-colors | Track fund origins with colored assets |
To submit a script, see Numscript transactions.
The Numscript playground runs the same interpreter. Its feature flags selector is a playground control that stands in for the pragmas above; against Ledger 3.0, declare the pragma in the script itself.