ledger.v1
Execute a Numscript
deprecated
This route is deprecated, and has been merged into POST /{ledger}/transactions
.
POST
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Name of the ledger.
Example:
"ledger001"
Query Parameters
Set the preview mode. Preview mode doesn't add the logs to the database or publish a message to the message broker.
Example:
true
Body
application/json
Response
200 - application/json
On success, it will return a 200 status code, and the resulting transaction under the transaction
field.
On failure, it will also return a 200 status code, and the following fields:
details
: contains a URL. When there is an error parsing Numscript, the result can be difficult to read—the provided URL will render the error in an easy-to-read format.errorCode
anderror_code
(deprecated): contains the string code of the errorerrorMessage
anderror_message
(deprecated): contains a human-readable indication of what went wrong, for example that an account had insufficient funds, or that there was an error in the provided Numscript.
The response is of type object
.