fix: add fullnodeExit()
This commit is contained in:
@ -521,6 +521,19 @@ export class Connection {
|
||||
return await this.sendRawTransaction(wireTransaction);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
async fullnodeExit(): Promise<boolean> {
|
||||
const unsafeRes = await this._rpcRequest('fullnodeExit', []);
|
||||
const res = jsonRpcResult('boolean')(unsafeRes);
|
||||
if (res.error) {
|
||||
throw new Error(res.error.message);
|
||||
}
|
||||
assert(typeof res.result !== 'undefined');
|
||||
return res.result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a transaction that has already been signed and serialized into the
|
||||
* wire format
|
||||
|
Reference in New Issue
Block a user