revokeEd25519Signer method

RevokeSponsorshipOperationBuilder revokeEd25519Signer(
  1. String signerAccountId,
  2. String ed25519AccountId
)

Implementation

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

  _signerKey = XdrSignerKey(XdrSignerKeyType.SIGNER_KEY_TYPE_ED25519);
  _signerKey!.ed25519 = XdrUint256(StrKey.decodeStellarAccountId(ed25519AccountId));
  _signerAccountId = signerAccountId;

  return this;
}