terra_sdk.core.broadcast
Transaction broadcast result data types.
BlockTxBroadcastResult Objects
_2@attr.s_2class BlockTxBroadcastResult(JSONSerializable)
Data object that contains the response result from node after transaction
has been broadcasted with the block broadcast mode.
height
Height at which transaction was included.
txhash
Transaction hash.
raw_log
Raw JSON of transaction events.
gas_wanted
Gas requested by the transaction.
gas_used
Actual amount of gas consumed by transaction.
logs
List of transaction logs.
code
If this is present, the transaction failed.
codespace
Error subspace name: used alongside code.
timestamp
timestamp
is_tx_error
_1def is_tx_error() -> bool
Returns whether the transaction failed.
SyncTxBroadcastResult Objects
_2@attr.s_2class SyncTxBroadcastResult(JSONSerializable)
Data object that contains the response result from node after transactionco
has been broadcasted with the sync broadcast mode.
txhash
Transaction hash.
raw_log
Raw JSON of transaction events.
code
If this is present, the transaction failed.
codespace
Error subspace name: used alongside code.
is_tx_error
_1def is_tx_error() -> bool
Returns whether the transaction failed.
AsyncTxBroadcastResult Objects
_2@attr.s_2class AsyncTxBroadcastResult(JSONSerializable)
Data object that contains the response result from node after transaction
has been broadcasted with the sync broadcast mode.
txhash
Transaction hash.
is_tx_error
_1def is_tx_error(result: Union[BlockTxBroadcastResult, SyncTxBroadcastResult])
Returns whether the transaction failed.