Numscript Library

Analyze Numscript source

Changed on

Validates Numscript v1 and returns the external input schema without reading or changing ledger state. Recognized source failures are returned as diagnostics with an empty input list. Sources over 64 KiB or with more than 32 block-comment open markers receive a syntax diagnostic; internal failures return a server error.

post/v3/numscripts/analyze

Request

  • Base URL
    http://localhost:9000
  • URL
    http://localhost:9000/v3/numscripts/analyze
  • Auth
    • HTTP bearer
    • or none

Request body

sourcestring required

UTF-8 source text, at most 64 KiB. The complete HTTP JSON body is limited to 4 MiB.

versionstring required

Numscript language version; currently v1.

Example request

{
  "version": "v1"
}

Response

Analysis result

Changes