getAccountTransactions()
Gets all the transactions for an Etherspot address.
Introduction
Ready-to-fork CodeSandbox available
How to use
import {
useEtherspotHistory,
} from '@etherspot/transaction-kit';
// Later in the main component function...
const { getAccountTransactions } = useEtherspotHistory();
// And when you're ready to fetch your transaction history...
const accountTransactionHistory = await getAccountTransactions(); // This is also a Promise
// accountTransactionHistory will now contain an array of history objects.π Congratulations!
Last updated
Was this helpful?