Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to retrieve approvals #165

Open
TripleSpeeder opened this issue Apr 18, 2022 · 4 comments
Open

Failing to retrieve approvals #165

TripleSpeeder opened this issue Apr 18, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@TripleSpeeder
Copy link
Owner

TAC fails with error:
{"description":"Unable to perform HTTP request correctly","cause":{}}

Apparently the graphql backend by dfuse.io has been shut down.

@TripleSpeeder TripleSpeeder added the bug Something isn't working label Apr 18, 2022
@FMuro77
Copy link

FMuro77 commented Apr 18, 2022

Hello, any workaround?
Any other site as backend maybe,?
Thanks in advance.

@TripleSpeeder
Copy link
Owner Author

TripleSpeeder commented Apr 19, 2022

The problem is that TAC is relying heavily on the dfuse.io functionality. dfuse allowed to make a query like "give me all approval events since the genesis block, where the approver is the users address, no matter which contract logged the event or which account/contract created the transaction". And it returns results in an instance.
This is not possible using normal web3 APIs like getPastEvents (and if it was possible it would take forever to retrieve the events). Also thegraph.com does not support this type of query. Maybe trublocks.io can provide a similar powerful query. But this is definitely not a drop-in replacement :-/

@abourget
Copy link

A subgraph can index all the approvals (into a postgres db), and you can then query them from there. Wouldn't that work?

@FMuro77
Copy link

FMuro77 commented Apr 19, 2022

How about the JSON-RPC API call https://eth.wiki/json-rpc/API
I'm sure there will be some function that helps.

Edited:
In this link at bottom there are many libraries that could help
https://ethereum.org/en/developers/docs/apis/backend/#available-libraries

Edited 2:
Found its Telegram group https://t.me/dfusece on its GitHub https://github.com/dfuse-io/dfuse-eosio and seems there is a new site https://dfuse.eosnation.io/

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants