applesauce-wallet-connect
Version:
NIP-47 Nostr Wallet Connect implementation for both clients and services.
18 lines (17 loc) • 709 B
TypeScript
export interface WalletConnectURI {
/** The pubkey of the wallet service */
service: string;
/** The relays to use for the connection */
relays: string[];
/** The secret key that the client will use to encrypt messages */
secret: string;
/** An optional lub16 lightning address that is associated with the wallet */
lud16?: string;
}
/**
* Parses a nostr+walletconnect URI
* @throws {Error} if the connection string is invalid
*/
export declare function parseWalletConnectURI(connectionString: string): WalletConnectURI;
/** Creates a nostr+walletconnect URI from a WalletConnectURI object */
export declare function createWalletConnectURI(parts: WalletConnectURI): string;