Starknet Documentation home page
Welcome
Build
Secure
Learn
Ask AI
Search...
Navigation
core::gas
core::gas::redeposit_gas
Search...
⌘K
Corelib
Introduction
Modules
core::traits
core::boolean
core::circuit
core::blake
core::box
core::nullable
core::option
core::clone
core::ec
core::ecdsa
core::integer
core::cmp
core::gas
core::gas::BuiltinCosts
core::gas::GasBuiltin
core::gas::GasReserve
core::gas::withdraw_gas
core::gas::withdraw_gas_all
core::gas::redeposit_gas
core::gas::get_builtin_costs
core::gas::gas_reserve_create
core::gas::gas_reserve_utilize
core::math
core::num
core::ops
core::panics
core::hash
core::keccak
core::pedersen
core::qm31
core::serde
core::sha256
core::poseidon
core::debug
core::fmt
core::starknet
core::internal
core::zeroable
core::bytes_31
core::byte_array
core::string
core::iter
core::metaprogramming
core::testing
core::to_byte_array
Miscellaneous
core::panic_with_felt252
core::panic_with_const_felt252
core::assert
core::bool
core::never
core::usize
core::RangeCheck
core::SegmentArena
core::felt252
core::felt252_div
On this page
Signature
core::gas
core::gas::redeposit_gas
Returns unused gas into the gas builtin. Useful for cases where different branches take different amounts of gas, but gas withdrawal is the same for both.
Signature
Copy
Ask AI
pub
extern
fn
redeposit_gas
()
implicits
(
GasBuiltin
)
nopanic
;
Was this page helpful?
Yes
No
Suggest edits
Raise issue
core::gas::withdraw_gas_all
Previous
core::gas::get_builtin_costs
Next
Assistant
Responses are generated using AI and may contain mistakes.