chore: remove undocumented validatorExit method
This commit is contained in:
@@ -2682,18 +2682,6 @@ export class Connection {
|
||||
return await this.sendRawTransaction(wireTransaction, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
async validatorExit(): Promise<boolean> {
|
||||
const unsafeRes = await this._rpcRequest('validatorExit', []);
|
||||
const res = create(unsafeRes, jsonRpcResult(boolean()));
|
||||
if (res.error) {
|
||||
throw new Error('validator exit failed: ' + res.error.message);
|
||||
}
|
||||
return res.result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a transaction that has already been signed and serialized into the
|
||||
* wire format
|
||||
|
Reference in New Issue
Block a user