Open alarrieux opened 2 years ago
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)
}
@UjjwalGupta49 looking to use alchemy or quicknode
You can change with API url and send GET request accordingly.
👌