ViewContract or why do I need to create an account if I want to use only query methods? #1064
Replies: 2 comments 3 replies
-
What is
The new I would argue that What is What if I want to sign change method calls with different accounts?
I think it is still realistic to refactor |
Beta Was this translation helpful? Give feedback.
-
the proposed idea was implemented in #1325 |
Beta Was this translation helpful? Give feedback.
-
So in the current API, when I use near-api-js Contract only for query methods(view methods), I need to create a redundant account
with an empty string, otherwise, I am not able to use the Contract, it is not an obvious thing for developers and it should be changed.
Also, we already have questions like that on StackOverflow, but the solution is to not use near-api-js and it will definitely confuse people.
What I propose is to implement another contract for example view contract where you will pass the connection and contract and will receive, the contract that you need without an account.
Beta Was this translation helpful? Give feedback.
All reactions