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

10 lines
365 B
TypeScript

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