Tx
Returns with the responses from CheckTx and DeliverTx.
IMPORTANT: use only for testing and development. In production, use BroadcastTxSync or BroadcastTxAsync. You can subscribe for the transaction result using JSONRPC via a websocket. See https://docs.tendermint.com/v0.34/app-dev/subscribing-to-events-via-websocket.html
CONTRACT: only returns error if mempool.CheckTx() errs or if we timeout waiting for tx to commit.
If CheckTx or DeliverTx fail, no error will be returned, but the returned result will contain a non-OK ABCI code.
Please refer to https://docs.tendermint.com/v0.34/tendermint-core/using-tendermint.html#formatting for formatting/encoding rules.
get/broadcast_tx_commit
Request
- Base URLhttp://localhost:26657
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
txstring required
The transaction
Response
empty answer
Example response
{
"result": {
"height": "26682",
"hash": "75CA0F856A4DA078FC4911580360E70CEFB2EBEE",
"deliver_tx": {
"code": "0"
},
"check_tx": {
"code": "0"
}
},
"jsonrpc": "2.0"
}Changes
No operation changes recorded.