@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
18 lines • 940 B
TypeScript
import type { Address, TransactionSendingSigner } from "@solana/kit";
import type { SolanaClient } from "gill";
import type { GetExplorerLinkFunction } from "../../contexts/grill-context.js";
import type { TransactionStatusEvent } from "../../types.js";
import type { SendTXFunction } from "../types.js";
export interface CreateSendTXParams {
signer: TransactionSendingSigner | null;
rpc: SolanaClient["rpc"];
refetchAccounts: (addresses: Address[]) => Promise<void>;
onTransactionStatusEvent: (event: TransactionStatusEvent) => void;
getExplorerLink: GetExplorerLinkFunction;
}
/**
* Creates a function to send transactions using the modern @solana/kit API
* while maintaining compatibility with the wallet adapter.
*/
export declare const createSendTX: ({ signer, rpc, refetchAccounts, onTransactionStatusEvent, getExplorerLink, }: CreateSendTXParams) => SendTXFunction;
//# sourceMappingURL=create-send-tx.d.ts.map