david.walker | Posts: 33

Prevent myself from being added as a signer

0 votes

Hi,

On the attached code, the template created always include myself as a signer. How can I stop this from happening?


Approved Answer
Duo_Liang | Posts: 3776

Reply to: Prevent myself from being added as a signer

0 votes

Hi David,

 

Please be aware that the sender will always be added as a signer to the transaction (no matter created from UI or code). However, adding below line should be able to hide the sender from the recipient list in UI:


  DocumentPackage pkg = PackageBuilder.NewPackageNamed("Package Name")
    ......
    .WithAttributes(new DocumentPackageAttributesBuilder()
              .WithAttribute("senderVisible", false)
             )

    .Build();  

 

Duo


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off