webln.getInfo
Ask the user for some information about their node. The request may be rejected by the user depending on the provider implementation.
function getInfo(): Promise<GetInfoResponse>;
interface GetInfoResponse = {
node: {
alias: string;
pubkey: string;
color?: string;
};
}