WebLN
v0.3.2
WebLN
v0.3.2
Overview
IntroductionGetting StartedUX Best Practices
Client API Reference
requestProviderwebln.getInfowebln.sendPaymentwebln.makeInvoicewebln.signMessagewebln.verifyMessageErrors
GitHub
Edit this page on GitHub
Edit

webln.getInfo

Ask the user for some information about their node. The request may be rejected by the user depending on the provider implementation.

Parameters

function getInfo(): Promise<GetInfoResponse>;

Response

interface GetInfoResponse = {
  node: {
    alias: string;
    pubkey: string;
    color?: string;
  };
}

Demo

See source on GitHub