@openproduct/web-sdk
Version:
OpenMask Web - TypeScript Browser SDK for TON blockchain
19 lines (18 loc) • 504 B
TypeScript
export interface TransferUrl {
address: string;
amount?: string;
text?: string;
}
/**
* @param url {string}
* @return {{address: string, amount?: string, text?: string}}
* @throws if invalid url
*/
export declare function parseTransferUrl(url: string): TransferUrl;
/**
* @param address {string}
* @param amount? {string} in nano
* @param text? {string}
* @return {string}
*/
export declare function formatTransferUrl(address: string, amount?: string, text?: string): string;