Check transaction
Send a signed transaction containing a command to the network to be checked, but not added to the chain's mempool. This is useful for checking the validity of a potential transaction before submitting it.
Request Body required
tx object
Transaction containing a command to be checked on the network, and not added to the chain's mempool.
Hex-encoded address of the sender. Not supported yet.
Protobuf message of type InputData
marshalled into bytes. If the transaction version is V3 or higher then this bytes
string must be prepended with chain_id_as_byes + \0
.
pow object
Proof-of-work containing the random transaction ID used by the client and the nonce.
Number which, combined with the transaction identifier, will produce a hash with the required number of leading zeros to be accepted by the network.
Unique transaction identifier used to seed the proof-of-work hash.
Hex-encoded public key of the sender.
signature object
Signature of the input data field, signed by the sender of this transaction.
Algorithm used to create the signature.
Hex encoded bytes of the signature.
Version of the algorithm used to create the signature.
Possible values: [TX_VERSION_UNSPECIFIED
, TX_VERSION_V2
, TX_VERSION_V3
]
Default value: TX_VERSION_UNSPECIFIED
Version of the transaction.
- 200
- default
A successful response.
Schema
Unused.
Error code to indicate the category of failure if the transaction was not successfully checked.
Further details for why the transaction was not successfully submitted.
Unused.
Amount of space in a block that the transaction will fill. This does not relate to any monetary cost for submitting the transaction.
Further details for the underlying consensus layer of the result of the transaction.
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.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}