mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2026-07-27 10:14:34 +10:00
feat: add warp tx executor
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { BlockhashWithExpiryBlockHeight, Transaction, VersionedTransaction } from '@solana/web3.js';
|
||||
import { BlockhashWithExpiryBlockHeight, Keypair, MessageV0, Signer, VersionedTransaction } from '@solana/web3.js';
|
||||
|
||||
export interface TransactionExecutor {
|
||||
executeAndConfirm(
|
||||
transaction: Transaction | VersionedTransaction,
|
||||
latestBlockhash: BlockhashWithExpiryBlockHeight,
|
||||
): Promise<{ confirmed: boolean; signature: string }>;
|
||||
transaction: VersionedTransaction,
|
||||
payer: Keypair,
|
||||
latestBlockHash: BlockhashWithExpiryBlockHeight,
|
||||
): Promise<{ confirmed: boolean; signature?: string }>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user