cosmpy.aerial.tx_
helpers¶
Transaction helpers.
MessageLog Objects¶
Message Log.
TxResponse Objects¶
Transaction response.
Raises:
OutOfGasError
: Out of gas errorInsufficientFeesError
: Insufficient feesBroadcastError
: Broadcast Exception
is_
successful¶
Check transaction is successful.
Returns:
transaction status
ensure_
successful¶
Ensure transaction is successful.
Raises:
OutOfGasError
: Out of gas errorInsufficientFeesError
: Insufficient feesBroadcastError
: Broadcast Exception
SubmittedTx Objects¶
Submitted transaction.
__
init__
¶
Init the Submitted transaction.
Arguments:
client
: Ledger clienttx_hash
: transaction hash
tx_
hash¶
Get the transaction hash.
Returns:
transaction hash
response¶
Get the transaction response.
Returns:
response
contract_
code_
id¶
Get the contract code id.
Returns:
return contract code id if exist else None
contract_
address¶
Get the contract address.
Returns:
return contract address if exist else None
wait_
to_
complete¶
def wait_to_complete(
timeout: Optional[Union[int, float, timedelta]] = None,
poll_period: Optional[Union[int, float,
timedelta]] = None) -> "SubmittedTx"
Wait to complete the transaction.
Arguments:
timeout
: timeout, defaults to Nonepoll_period
: poll_period, defaults to None
Returns:
Submitted Transaction