DocsHelper class

Constructors

DocsHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getReceivedDocuments({required String address, required NetworkInfo networkInfo, Client? client}) Future<List<CommercioDoc>>
Returns the list of all the CommercioDoc that the specified address has been received.
getReceivedReceipts({required String address, required NetworkInfo networkInfo, Client? client}) Future<List<CommercioDocReceipt>>
Returns the list of all the CommercioDocReceipt that have been received from the given address.
getSentDocuments({required String address, required NetworkInfo networkInfo, Client? client}) Future<List<CommercioDoc>>
Returns the list of all the CommercioDoc that the specified address has sent.
getSentReceipts({required String address, required NetworkInfo networkInfo, Client? client}) Future<List<CommercioDocReceipt>>
Returns the list of all the CommercioDocReceipt that have been sent from the given address.
sendDocumentReceipt({required String recipient, required String txHash, required String documentId, required Wallet wallet, String? proof, StdFee? fee, BroadcastingMode? mode, Client? client}) Future<TransactionResult>
Creates a new transaction which tells the recipient that the document having the specified documentId and present inside the transaction with txHash has been properly seen; optionally proof of reading, fee and broadcasting mode.
sendDocumentReceiptsList(List<CommercioDocReceipt> commercioDocReceiptsList, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) Future<TransactionResult>
Creates a new transaction which sends a list of previously generated receipts commercioDocReceiptsList. Optionally fee and broadcasting mode parameters can be specified.
shareDocument({required String id, required CommercioDocMetadata metadata, required List<String> recipients, required Wallet wallet, String? contentUri, CommercioDoSign? doSign, CommercioDocChecksum? checksum, Uint8List? aesKey, Set<CommercioEncryptedData>? encryptedData, StdFee? fee, BroadcastingMode? mode, Client? client}) Future<TransactionResult>
Creates a new transaction that allows to share the document associated with the given metadata and having the optional contentUri, doSign, checksum, fee and broadcasting mode. If encryptedData is specified then encrypts the proper data for the specified recipients and then sends the transaction to the blockchain.
shareDocumentsList(List<CommercioDoc> commercioDocsList, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) Future<TransactionResult>
Create a new transaction that allows to share a list of previously generated documents commercioDocsList signing with wallet. Optionally fee and broadcasting mode parameters can be specified.