Parameters
- payload: {
apiEndpoint: string | URL;
apiToken: string;
timeout?: number;
}apiEndpoint: string | URL
apiToken: string
Optional
timeout?: number
Returns Promise<{
capabilities: {
endpoint: "accountWithdraw" | "accountGetBalances" | "accountGetAddresses" | "aliasesGetAliases" | "aliasesSetAlias" | "aliasesGetAlias" | "aliasesRemoveAlias" | "channelsFundChannels" | "channelsOpenChannel" | "channelsGetChannels" | "channelsRedeemTickets" | "channelsGetTickets" | "channelsGetChannel" | "channelsCloseChannel" | "messagesWebsocket" | "messagesSign" | "messagesSendMessage" | "nodeGetVersion" | "nodeStreamWebsocket" | "nodePing" | "nodeGetPeers" | "nodeGetMetrics" | "nodeGetInfo" | "nodeGetEntryNodes" | "peerInfoGetPeerInfo" | "settingsGetSettings" | "settingsSetSetting" | "ticketsGetStatistics" | "ticketsRedeemTickets" | "ticketsGetTickets" | "tokensCreate" | "tokensGetToken" | "tokensDelete";
limits: {
conditions?: {
max?: number;
};
type: string;
}[];
}[];
description?: string;
id: string;
valid_until?: number;
}>
A Promise that resolves to an object with the token info.
Get the full token information for the token used in authentication.