Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

Creates a new gas reserve by withdrawing the specified amount from the gas counter. Returns Some(GasReserve) if there is sufficient gas, otherwise returns None.

Signature

pub extern fn gas_reserve_create(amount: u128) -> Option implicits(RangeCheck, GasBuiltin) nopanic;