authorizeStake method
Implementation
Future<KeyedSignature> authorizeStake(String withdrawer) async {
try {
var response = await sendMessage(formatRequest(
method: 'authorizeStake', params: {'withdrawer': withdrawer}))
.then((Map<String, dynamic> data) {
if (data.containsKey('result')) {
KeyedSignature sig =
KeyedSignature.fromJson(data['result']['signature']);
return sig;
}
});
return response!;
} on NodeException catch (e) {
throw NodeException(
code: e.code, message: '{"authorizeStake": "${e.message}"}');
}
}