revokeTrustlineSponsorship method
Implementation
RevokeSponsorshipOperationBuilder revokeTrustlineSponsorship(
String accountId, Asset asset) {
if (_ledgerKey != null || _signerKey != null) {
throw new Exception("can not revoke multiple entries per builder");
}
_ledgerKey = XdrLedgerKey(XdrLedgerEntryType.TRUSTLINE);
_ledgerKey!.trustLine = XdrLedgerKeyTrustLine(
XdrAccountID(KeyPair.fromAccountId(accountId).xdrPublicKey),
asset.toXdrTrustLineAsset());
return this;
}