@saberhq/sail
Version:
Account caching and batched loading for React-based Solana applications.
17 lines • 740 B
TypeScript
import type { TransactionEnvelope, TransactionReceipt } from "@saberhq/solana-contrib";
import type { HandleTXOptions } from "./useHandleTXs";
/**
* Transaction handler helpers.
*/
export interface TXHandlers {
/**
* Signs and confirms a transaction before returning.
*/
signAndConfirmTX: (txEnv: TransactionEnvelope, msg?: string, options?: HandleTXOptions) => Promise<TransactionReceipt>;
/**
* Signs and confirms multiple transactions before returning.
*/
signAndConfirmTXs: (txEnvs: readonly TransactionEnvelope[], msg?: string, options?: HandleTXOptions) => Promise<readonly TransactionReceipt[]>;
}
export declare const useTXHandlers: () => TXHandlers;
//# sourceMappingURL=useConfirmTXs.d.ts.map