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

How to get all transactions of my wallet? #576

Closed
Emin-Emini opened this issue May 27, 2022 · 2 comments
Closed

How to get all transactions of my wallet? #576

Emin-Emini opened this issue May 27, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Emin-Emini
Copy link

Emin-Emini commented May 27, 2022

Hi there,

I'm developing a wallet based on this SDK, and I'm wondering how to get all transactions made on a specific wallet?

I'm searching but still cannot find how it's done on this SDK. I would appreciate any example.

@Emin-Emini Emin-Emini changed the title How I can show all transactions of my wallet? How to get all transactions of my wallet? May 27, 2022
@mloit
Copy link
Contributor

mloit commented May 27, 2022

The only way to do this is to inspect the entire chain itself. You literally need to brute force the approach by looking at every transaction on the chain to see if your address of interest is involved.

You can use a 3rd party service like Etherscan to make this process easier, as they have already indexed the entire chain. Etherescan does have several API calls that you can use to accomplish exactly what you are asking. Web3Swift does not support Etherscan directly, so you will need to write your own implementation of their custom API, or use another library.

@yaroslavyaroslav yaroslavyaroslav added FAQ common questions tend to recur about web3 infra question Further information is requested and removed FAQ common questions tend to recur about web3 infra labels May 31, 2022
@elapovski
Copy link

@Emin-Emini https://api.etherscan.io/api?module=account&action=txlist&address=**ADDRESS**&startblock=0&endblock=latest&sort=desc&apikey=YourApiKeyToken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants