revokePreAuthTxSigner method
Implementation
RevokeSponsorshipOperationBuilder revokePreAuthTxSigner(
String signerAccountId, String preAuthTx) {
if (_ledgerKey != null || _signerKey != null) {
throw new Exception("can not revoke multiple entries per builder");
}
checkNotNull(signerAccountId, "accountId cannot be null");
checkNotNull(preAuthTx, "preAuthTx cannot be null");
XdrAccountID accId = XdrAccountID();
accId.accountID = KeyPair.fromAccountId(signerAccountId).xdrPublicKey;
_signerKey = XdrSignerKey();
_signerKey.discriminant = XdrSignerKeyType.SIGNER_KEY_TYPE_PRE_AUTH_TX;
_signerKey.ed25519 = XdrUint256();
_signerKey.ed25519.uint256 = StrKey.decodePreAuthTx(preAuthTx);
_signerAccountId = signerAccountId;
return this;
}