Files
solana-sniper-bot/transactions/transaction-executor.interface.ts
Filip Dunder 77c9853562 tsc & prettier
2024-04-30 10:52:42 -03:00

10 lines
338 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 }>;
}