setSigner method

SetOptionsOperationBuilder setSigner (
  1. XdrSignerKey signer,
  2. int weight
)

Add, update, or remove a signer from the account. Signer is deleted if the weight = 0;

Implementation

SetOptionsOperationBuilder setSigner(XdrSignerKey signer, int weight) {
  checkNotNull(signer, "signer cannot be null");
  checkNotNull(weight, "weight cannot be null");
  this._signer = signer;
  _signerWeight = weight & 0xFF;
  return this;
}