Accept Only

If you want to let your recipients accept the documents within the transaction, you can specify this per document within the ValidSign transaction.

Accept Only Document

Create an Accept Only Document

If you want to create an "accept-only" document, you can use below payload for a document:

{
   "approvals": [
      {
         "role": "Signer1"
      },
      {
         "role": "Signer2"
      }
   ],
   "index": 1,
   "id": "document_id",
   "name": "Sample Document",
   "isConsent": false
}
.withDocument(DocumentBuilder.newDocumentWithName("Sample Document")
   .atIndex(1)
   .fromFile("your_file_path")
   .withSignature(SignatureBuilder.acceptanceFor("signer1@example.com")))
.WithDocument(DocumentBuilder.NewDocumentNamed("Sample Document")
   .AtIndex(1)
   .FromFile("your_file_path)
   .WithSignature(SignatureBuilder.AcceptanceFor("signer1@example.com")))