Show / Hide Table of Contents

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 Source

GasAvailable

The available gas of the action.

Declaration
long GasAvailable { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

GasLimit

The gas limit of the action.

Declaration
long GasLimit { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

GasUsed

The gas used by the action.

Declaration
long GasUsed { get; }
Property Value
Type Description
System.Int64

Methods

| Improve this Doc View Source

UseGas(Int64)

Use gas of the account.

Declaration
void UseGas(long gas)
Parameters
Type Name Description
System.Int64 gas

The gas usage of the action.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium