0

I a little confused about this, i've read that pure / view functions don't cost gas / require a transaction when called, other people say that it does cost, but you're not the one pating for it.

So what is it?

1 Answer 1

1

View functions only use gas when they are called by non-view functions inside of the contract.

View functions don't consume gas because you are only making a call to your Node, so you're not asking every node on the chain to perform an action.

You can say that is free but you are limited by your node provider, if you want to make a lot of requests (usually more than 300k a month) you might need to pay your node provider. Or even if you have your own node you are paying for electricity and so on.

1
  • Awesome! Thanks :D
    – MrFrenzoid
    Jun 20 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.