mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
Co-authored-by: Maxence Maireaux <[email protected]> Co-authored-by: David Ragot <[email protected]>
16 KiB
16 KiB
RunScriptResponse
Fields
| Field | Type | Required | Description |
|---|---|---|---|
ContentType |
string | ✔️ | HTTP response content type for this operation |
ScriptResponse |
*shared.ScriptResponse | ➖ | 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 error- errorMessage 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. |
StatusCode |
int | ✔️ | HTTP response status code for this operation |
RawResponse |
*http.Response | ✔️ | Raw HTTP response; suitable for custom response parsing |