transaction-executor.interface.ts 365 B

123456789
  1. import { BlockhashWithExpiryBlockHeight, Keypair, MessageV0, Signer, 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. }