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 ...
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 {...
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) => {
...
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....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
views × 5on-chain-views × 4
contract × 1
api × 1
entrypoint × 1
off-chain-views × 1
metadata × 1