revokeSha256HashSigner method

RevokeSponsorshipOperationBuilder revokeSha256HashSigner(
  1. String signerAccountId,
  2. String sha256Hash
)

Implementation

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

  _signerKey = XdrSignerKey(XdrSignerKeyType.SIGNER_KEY_TYPE_HASH_X);
  _signerKey!.hashX = XdrUint256(StrKey.decodeSha256Hash(sha256Hash));
  _signerAccountId = signerAccountId;

  return this;
}