7. Transaction History
Overview
Initializing the Staker and Fetching Transaction History
const staker = new EthereumStaker({ network: 'hoodi' })
await staker.init()
const txHistory = await staker.getTxHistory({
delegatorAddress: userAddress,
validatorAddress
})
console.log(txHistory)
// [
// {
// timestamp: 1632960000000,
// type: 'Deposited',
// amount: '1',
// txHash: '0x...'
// }
// ]Displaying Transaction History

Next Steps
Last updated
Was this helpful?