UNPKG

@macalinao/grill

Version:

Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications

16 lines 567 B
/** * Gets a confirmed transaction from the blockchain with parsed JSON encoding * @param rpc - The RPC client with GetTransactionApi * @param signature - The transaction signature to fetch * @returns The transaction details or null if not found */ export const getConfirmedTransaction = async (rpc, signature) => { return await rpc .getTransaction(signature, { commitment: "confirmed", maxSupportedTransactionVersion: 0, encoding: "jsonParsed", }) .send(); }; //# sourceMappingURL=get-confirmed-transaction.js.map