graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.89k stars 961 forks source link

Feature Request: View function call indexing on NEAR #3629

Open antiyro opened 2 years ago

antiyro commented 2 years ago

It seems that the view function calls are not yet supported by the graph for the Near blockchain. I would like to know if you consider integrating this feature which could be useful to retrieve all kinds of data such as metadatas, total supply, token values etc. It would facilitate the migration of EVM subgraphs and would participate in the development of Near.

azf20 commented 2 years ago

hey @antiyro ! I think this is the relevant API: https://docs.near.org/docs/api/rpc/contracts#call-a-contract-function

It does seem to support querying as of a specific block_id, so that meets our requirements in terms of determinism.

We have discussed this internally previously, will update here.

This would require introducing a new NEAR RPC provider configuration on Graph Node

github-actions[bot] commented 1 year ago

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.