Submit raw transaction
POST/transaction/raw
Submit a pre-serialised signed transaction containing a command to the network to be executed, such that if the submission is successful then it will be included in the chain's mempool. The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
Request
- application/json
Body
required
- TYPE_ASYNC: Transaction will be submitted without waiting for response
- TYPE_SYNC: Transaction will be submitted, and blocking until the tendermint mempool returns a response
- TYPE_COMMIT: Transaction will be submitted, and blocking until the tendermint network has committed it into a block. Used only for debugging, not for submitting transactions
Possible values: [TYPE_UNSPECIFIED
, TYPE_ASYNC
, TYPE_SYNC
, TYPE_COMMIT
]
Default value: TYPE_UNSPECIFIED
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
Error code to indicate the category of failure if the transaction was not successfully submitted.
Further details for why the transaction was not successfully submitted.
Unused.
Further details for the underlying consensus layer of the result of the transaction.
Whether or not the transaction was validated and submitted to the chain's mempool.
Hash of the transaction, which can be used to identify the transaction in a node's event stream.
{
"code": 0,
"data": "string",
"height": "string",
"log": "string",
"success": true,
"txHash": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}