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

[Request]Get transaction history for a wallet addrss #390

Open
alarrieux opened this issue Jun 30, 2022 · 4 comments
Open

[Request]Get transaction history for a wallet addrss #390

alarrieux opened this issue Jun 30, 2022 · 4 comments

Comments

@alarrieux
Copy link

No description provided.

@alarrieux alarrieux changed the title Get transaction history for a wallet addrss [Request]Get transaction history for a wallet addrss Jun 30, 2022
@Loverboylove
Copy link

👌

@UjjwalGupta49
Copy link

Can be done using Solscan API

import { useWallet } from "@solana/wallet-adapter-react";
const { publicKey } = useWallet();

try {
      fetch(`https://public-api.solscan.io/account/transactions?account=${publicKey}&limit=50`)
        .then((response) => response.json())
        .then((data) => console.log(data));
    } catch (error) {
        console.log(error)
    }

@alarrieux
Copy link
Author

@UjjwalGupta49 looking to use alchemy or quicknode

@UjjwalGupta49
Copy link

You can change with API url and send GET request accordingly.

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

No branches or pull requests

3 participants