-1

What does gas budget means when publishing a fungible token?

I was going Sui publishing move package.

https://docs.sui.io/build/devnet#publish-a-move-module

Here, They have this command

sui client publish --path <your-sui-repo>/sui_programmability/examples/move_tutorial --gas-budget 30000

Where this --gas-budget 30000 is bit unclear? like, I am new to web3/blockchain but I always thought gas price isn't decided by user.

Can someone please explain me or point me to the direction I should look at.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Alwaysblue
  • 9,948
  • 38
  • 121
  • 210

1 Answers1

1

You are providing the budget amount you are willing to pay for the transaction.

The txn may fail if the budget you provided is less than what node will accept.

On the other hand, your txn may not require that much and you will only be charged for what it costs.

There is no cost to do queries (i.e. sui client gas, sui client objects, etc.)

Frank C.
  • 7,758
  • 4
  • 35
  • 45