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