Interface IGasMeter
An interface to provide a transition of the gas usage.
Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public interface IGasMeter
Properties
| Improve this Doc View SourceGasAvailable
The available gas of the action.
Declaration
long GasAvailable { get; }
Property Value
Type | Description |
---|---|
Int64 |
GasLimit
The gas limit of the action.
Declaration
long GasLimit { get; }
Property Value
Type | Description |
---|---|
Int64 |
GasUsed
The gas used by the action.
Declaration
long GasUsed { get; }
Property Value
Type | Description |
---|---|
Int64 |
Methods
| Improve this Doc View SourceUseGas(Int64)
Use gas of the account.
Declaration
void UseGas(long gas)
Parameters
Type | Name | Description |
---|---|---|
Int64 | gas | The gas usage of the action. |