Submit a transaction
POST /tx/submit
Submit an already serialized transaction to the network.
Hosted Endpoint only available for hosted variant.
Request
application/cbor
Body
required
The transaction to submit, serialized in CBOR.
- string
The transaction to submit, serialized in CBOR.
Responses
- 200
- 400
- 403
- 404
- 418
- 425
- 429
- 500
Return the ID of the submitted transaction.
application/json
Schema
Schema
- string hex
Possible values:
>= 64 characters
and<= 64 characters
Bad request
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 400,
"error": "Bad Request",
"message": "Backend did not understand your request."
}
Authentication secret is missing or invalid
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 403,
"error": "Forbidden",
"message": "Invalid project token."
}
Component not found
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 404,
"error": "Not Found",
"message": "The requested component has not been found."
}
IP has been auto-banned for extensive sending of requests after usage limit has been reached
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 418,
"error": "Requested Banned",
"message": "IP has been auto-banned for flooding."
}
Mempool is already full, not accepting new txs straight away
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 425,
"error": "Mempool Full",
"message": "Mempool is full, please try resubmitting again later."
}
Usage limit reached
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 429,
"error": "Project Over Limit",
"message": "Usage is over limit."
}
Internal Server Error
application/json
Schema
Example (from schema)
Schema
status_code integer required
error string required
message string required
{
"status_code": 500,
"error": "Internal Server Error",
"message": "An unexpected response was received from the backend."
}
Loading...