cosmpy.aerial.gas¶
Transaction gas strategy.
GasStrategy Objects¶
Transaction gas strategy.
estimate_
gas¶
Estimate the transaction gas.
Arguments:
tx
: Transaction
Returns:
None
block_
gas_
limit¶
Get the block gas limit.
Returns:
None
SimulationGasStrategy Objects¶
Simulation transaction gas strategy.
Arguments:
GasStrategy
: gas strategy
__
init__
¶
Init the Simulation transaction gas strategy.
Arguments:
client
: Ledger clientmultiplier
: multiplier, defaults to None
estimate_
gas¶
Get estimated transaction gas.
Arguments:
tx
: transaction
Returns:
Estimated transaction gas
block_
gas_
limit¶
Get the block gas limit.
Returns:
block gas limit
OfflineMessageTableStrategy Objects¶
Offline message table strategy.
Arguments:
GasStrategy
: gas strategy
default_
table¶
offline message strategy default table.
Returns:
offline message default table strategy
__
init__
¶
Init offline message table strategy.
Arguments:
fallback_gas_limit
: Fallback gas limit, defaults to Noneblock_limit
: Block limit, defaults to None
update_
entry¶
Update the entry of the transaction.
Arguments:
transaction_type
: transaction typegas_limit
: gas limit
estimate_
gas¶
Get estimated transaction gas.
Arguments:
tx
: transaction
Returns:
Estimated transaction gas
block_
gas_
limit¶
Get the block gas limit.
Returns:
block gas limit