Check raw transaction
POST/transaction/raw/check
Send a pre-serialised transaction containing a command to the network to be checked, but then not added to the chain's mempool. This is useful for checking the validity of a potential transaction before submitting it.
Request
- application/json
Body
required
tx byterequired
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
info Unused (string)
code int64
Error code to indicate the category of failure if the transaction was not successfully submitted.
data string
Further details for why the transaction was not successfully checked.
gasUsed int64
Unused.
gasWanted int64
Amount of space in a block that the transaction will fill. This does not relate to any monetary cost for submitting the transaction.
log string
Further details for the underlying consensus layer of the result of the transaction.
success boolean
Whether or not the transaction passed the submission checks.
{
"info": "string",
"code": 0,
"data": "string",
"gasUsed": "string",
"gasWanted": "string",
"log": "string",
"success": true
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
Loading...