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.

Sets the transaction max fee.

Signature

pub fn set_max_fee(fee: u128)

Arguments

fee - The max fee to set. After a call to set_max_fee, starknet::get_execution_info().tx_info.max_fee will return the set value.