Registry / crypto / aptos-gas

aptos-gas

JSON →
libraryrscratesunverified

Gas metering for the Aptos blockchain.

# Cargo.toml [dependencies] aptos-gas = "latest"
INSTALL
IMPORT
SIG · APTOS-GAS
A
aptos-gas
cryptorust
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GasMeter
use aptos_gas::GasMeter;

Creates a gas meter and consumes some gas.

use aptos_gas::GasMeter; fn main() { let mut meter = GasMeter::new(1000); meter.consume(10); println!("Remaining gas: {}", meter.remaining()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
38
OpenAI (training)
1
Resources
aptos-gas — cargo add aptos-gas · libregistry