This route is deprecated, and has been merged into POST /{ledger}/transactions
.
The access token received from the authorization server in the OAuth 2.0 flow.
Name of the ledger.
"ledger001"
Set the preview mode. Preview mode doesn't add the logs to the database or publish a message to the message broker.
true
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
and error_code
(deprecated): contains the string code of the errorerrorMessage
and error_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
.