import type { Connection , PublicKey , SignaturesForAddressOptions } from '@solana/web3.js' ; export const getTransactionSignatures = async ( connection , ownerAddress , options ) => { return await connection . getSignaturesForAddress ( ownerAddress , options , 'confirmed' ) . catch ( ( error ) => { console . error ( `Error getting transaction signatures for ${ ownerAddress . toBase58 ( ) }` , error ) ; throw error ; } ) ; } ;