Questions tagged [on-chain-views]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
17 views

When generating contract metadata with `sp.init_metadata` do you include or exclude on-chain views in the `views` array in the metadata?

When performing self.init_metadata("metadata", some_metadata) on contract metadata inside smartpy, should the list of views inside the TZIP-16 metadata only contain off-chain views, or must ...
user avatar
  • 439
1 vote
2 answers
35 views

Can off-chain views call on-chain views?

Is it possible to call and process the result of an on-chain view inside an off-chain view that is stored inside contract metadata?
user avatar
  • 439
1 vote
1 answer
16 views

Can you send Mutez along with a call to an on-chain view?

Is it possible for a contract to offer a "Pay per View" on-chain view that will only respond if a certain amount of Mutez is sent with the call, or are on-chain view calls always free?
user avatar
  • 439