Skip to main content
2 votes
Accepted

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

on-chain views do not mutate any state (storage, balances, etc.). But it is possible to have a subscription system, where you can have an on-chain view that verifies if the caller has an active ...
Rodrigo Quelhas's user avatar
2 votes
Accepted

REST API for querying smart contract view

Upon further research I found that the tzkt API does support executing views. It is documented under the Helpers section. The syntax is as follows: POST to /v1/helpers/view/{contract}/{name} where {...
ktorn's user avatar
  • 447
1 vote
Accepted

How to call this view entrypoint

Using Taquito, this should be helpful: https://tezostaquito.io/docs/lambda_view/. From what I can read, it would probably look like this: Tezos.contract .at('KT1...') .then((contract) => { ...
LucasF's user avatar
  • 126
1 vote
Accepted

Can off-chain views call on-chain views?

Yes, you can call on-chain views from off-chain views. off-chain views use run_code RPC endpoint, which runs some instructions against a given context provided by you, similar to calling an entrypoint....
Rodrigo Quelhas's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible