revokeDataSponsorship method

RevokeSponsorshipOperationBuilder revokeDataSponsorship(
  1. String accountId,
  2. String dataName
)

Implementation

RevokeSponsorshipOperationBuilder revokeDataSponsorship(
    String accountId, String dataName) {
  if (_ledgerKey != null || _signerKey != null) {
    throw new Exception("can not revoke multiple entries per builder");
  }

  _ledgerKey = XdrLedgerKey(XdrLedgerEntryType.DATA);

  XdrAccountID accountID =
      XdrAccountID(KeyPair.fromAccountId(accountId).xdrPublicKey);
  XdrString64 dName = XdrString64(dataName);
  _ledgerKey!.data = XdrLedgerKeyData(accountID, dName);
  return this;
}