NEWTON
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
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
Cairo: What is the difference between let and tempvar?
What does ret do in Cairo?
Cairo: let vs tempvar what is the difference?
Cairo Error calling function: Expected 'function_name' to be a struct. Found: 'function'.
How can I send a Uint256 amount of ERC20 tokens from L1 to starknet? And how should I build my payload for "sendMessageToL2" to match the Uint256 format of Cairo?
How can i learn Cairo with Python base?
Can someone explain the difference between unsigned_div_rem and uint256_unsigned_div_rem?
How to setup local Starknet node with Account contracts?
when to use tail call optimization in a cairo smartcontract
Cairo/Nile: Testing the proxy upgrade feature, but my tests fail with the error message TypeError: int() can't convert non-string with explicit base.
How to convert tokens on starknet? Any DEXs AMMs?
Are you able to nest mappings in Cairo like you can in Solidity?
Does Cairo work in python3.10 venv? I can’t install python 3.9
Cairo: Unknown value for memory cell at address