@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
12 lines (10 loc) • 390 B
text/typescript
import type { SendTXFunction } from "@macalinao/gill-extra";
import { useGrillContext } from "../contexts/grill-context.js";
/**
* Hook that provides a function to send transactions using the modern @solana/kit API
* while maintaining compatibility with the wallet adapter.
*/
export const useSendTX = (): SendTXFunction => {
const { sendTX } = useGrillContext();
return sendTX;
};