UNPKG

@solana/pay

Version:

`@solana/pay` is a JavaScript library for facilitating commerce on Solana by using a token transfer URL scheme. The URL scheme ensures that no matter the wallet or service used, the payment request must be created and interpreted in one standard way.

14 lines • 750 B
import type { Options } from '@solana/qr-code-styling'; import QRCodeStylingModule from '@solana/qr-code-styling'; /** * Create a QR code from a Solana Pay URL. * * @param url - The URL to encode. * @param size - Width and height in pixels. * @param background - Background color, which should be light for device compatibility. * @param color - Foreground color, which should be dark for device compatibility. */ export declare function createQR(url: URL | string, size?: number, background?: string, color?: string): InstanceType<typeof QRCodeStylingModule.default>; /** @ignore */ export declare function createQROptions(url: URL | string, size?: number, background?: string, color?: string): Options; //# sourceMappingURL=createQR.d.ts.map