transaction-executor.interface.ts 346 B

123456789
  1. import { BlockhashWithExpiryBlockHeight, Keypair, VersionedTransaction } from '@solana/web3.js';
  2. export interface TransactionExecutor {
  3. executeAndConfirm(
  4. transaction: VersionedTransaction,
  5. payer: Keypair,
  6. latestBlockHash: BlockhashWithExpiryBlockHeight,
  7. ): Promise<{ confirmed: boolean; signature?: string, error?: string }>;
  8. }