@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
13 lines (10 loc) • 386 B
text/typescript
import { useGrillContext } from "../contexts/grill-context.js";
export type { SendTXFunction, SendTXOptions } from "../utils/types.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 = () => {
const { sendTX } = useGrillContext();
return sendTX;
};