revokeDataSponsorship method
Implementation
RevokeSponsorshipOperationBuilder revokeDataSponsorship(
String accountId, String dataName) {
if (_ledgerKey != null || _signerKey != null) {
throw new Exception("can not revoke multiple entries per builder");
}
checkNotNull(accountId, "accountId cannot be null");
checkNotNull(dataName, "dataName cannot be null");
_ledgerKey = XdrLedgerKey();
_ledgerKey.discriminant = XdrLedgerEntryType.DATA;
XdrAccountID accId = XdrAccountID();
accId.accountID = KeyPair.fromAccountId(accountId).xdrPublicKey;
XdrLedgerKeyData data = XdrLedgerKeyData();
data.accountID = accId;
XdrString64 dName = XdrString64();
dName.string64 = dataName;
data.dataName = dName;
_ledgerKey.data = data;
return this;
}