Files
solana-sniper-bot/transactions/transaction-executor.interface.ts
2024-04-21 13:44:57 +02:00

10 lines
346 B
TypeScript

import { BlockhashWithExpiryBlockHeight, Keypair, VersionedTransaction } from '@solana/web3.js';
export interface TransactionExecutor {
executeAndConfirm(
transaction: VersionedTransaction,
payer: Keypair,
latestBlockHash: BlockhashWithExpiryBlockHeight,
): Promise<{ confirmed: boolean; signature?: string, error?: string }>;
}