webln.getInfo()
Get information about the connected node: node alias, public key and color
async function getInfo(): GetInfoResponse;
interface GetInfoResponse = {
node: {
alias: string;
pubkey: string;
color?: string;
},
// Not supported by all connectors (see webln.request for more info)
methods: string[];
}
await webln.enable();
const info = await webln.getInfo();
Last modified 5mo ago