Questions tagged [off-chain-views]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
32 views

Off-chain view runs out of gas enumerating tokens

The off chain view enumerates all owners tokens by looping through them. At some point, when there are too many tokens added, the attached error starts throwing.
user avatar
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