NEWTON

NEWTON


Popular tags

    Cairo: Difference between amount and gas_fee

    Asked

    4 months ago

    5

    views


    0

    When calling estimateFee, I get a struct with amount, unit, gas_price and gas_usage. Wondering what is the difference between amount and gas_usage ?

    This question was originally posted on Triality

      starknetcairo-langcairo

    2 answers

    0

    yup , i am listen

    This answer was originally posted on Triality

    answered

    5 months ago

    0

    gas_usage is amount * gas_price. gas_price is by default set to 100 Gwei, but you can update the price on devnet with the following command: starknet-devnet --gas-price 999, where '999' would be the new gas price.

    This answer was originally posted on Triality

    answered

    5 months ago

    Your answer

    NEWTON

    NEWTON