NEWTON
Asked
7 months ago
8
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
7 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
7 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 write a struct in storage?
Can someone explain the difference between unsigned_div_rem and uint256_unsigned_div_rem?
What libraries are secure to use in Cairo?
How can I create an array and populate it in the hint Cairo lang/Protostar?
Why should I run a Pathfinder node?
Does anyone know how to print a uint256 in protostar tests?
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.