UNPKG

@macalinao/grill

Version:

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

28 lines 1.53 kB
import type { CompilableTransactionMessage, CompiledTransactionMessage } from "@solana/kit"; /** * Encodes a transaction message to base64 format. * This is useful for creating transaction inspector URLs or sending transactions * to services that expect base64-encoded messages. * * @param transactionMessage - The compilable transaction message to encode * @returns The base64-encoded transaction message string */ export declare function encodeTransactionMessageToBase64(transactionMessage: CompilableTransactionMessage): string; /** * Encodes a compiled transaction message to base64 format. * This is useful when you already have a compiled message and need to encode it. * * @param compiledMessage - The compiled transaction message to encode * @returns The base64-encoded transaction message string */ export declare function encodeCompiledTransactionMessageToBase64(compiledMessage: CompiledTransactionMessage): string; /** * Creates a Solana Explorer transaction inspector URL from a transaction message. * This allows previewing and simulating transactions before sending them. * * @param transactionMessage - The compilable transaction message to create an inspector URL for * @param cluster - The Solana cluster (defaults to "mainnet-beta") * @returns The Solana Explorer transaction inspector URL */ export declare function createTransactionInspectorUrl(transactionMessage: CompilableTransactionMessage, cluster?: "mainnet-beta" | "testnet" | "devnet"): string; //# sourceMappingURL=transaction.d.ts.map