Questions tagged [off-chain-views]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 views

What are the differences between the chain view decorators in SmartPy?

Considering the following SmartPy decorators: @sp.utils.view @sp.onchain_view @sp.offchain_view What are the differences in use between them?
Corpodev's user avatar
1 vote
2 answers
38 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 ...
0x10's user avatar
  • 359
1 vote
2 answers
85 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?
0x10's user avatar
  • 359