getInfo static method
dynamic
getInfo()
With getInfo the user gets information about the connected node as:
try {
await FlutterWebln.enable();
await FlutterWebln.getInfo().then(allowInterop((response) {
print('[+] GetInfoResponse: ${weblnDecode(response)}');
}));
} catch (error) {
print('[!] Error in getInfo method is $error');
}
Result: +
GetInfoResponse: {node: {alias: 🐝 getalby.com}}
Implementation
static getInfo() => WeblnApi.getInfo();