IdHelper class

Allows to perform common operations related to CommercioID.

Constructors

IdHelper()

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

getDidDocument(String did, Wallet wallet, {Client? client}) Future<DidDocument?>
Returns the Did Document associated with the given did, or null if no Did Document was found.
requestDidPowerUp(Wallet senderWallet, String pairwiseDid, List<StdCoin> amount, CommercioRSAPrivateKey privateKey, {StdFee? fee, BroadcastingMode? mode}) Future<TransactionResult>
Creates a new transaction to request a Did PowerUp of the given amount from the senderWallet wallet for the given pairwiseDid address. Signs everything that needs to be signed with the private key contained inside the given wallet and the privateKey. Optionally fee and broadcasting mode parameters can be specified.
requestDidPowerUpsList(List<RequestDidPowerUp> requestDidPowerUpsList, Wallet wallet, {StdFee? fee, BroadcastingMode? mode}) Future<TransactionResult>
Sends a new transaction from the sender wallet to request a list of Did PowerUp requestDidPowerUpsList. Optionally fee and broadcasting mode parameters can be specified.
setDidDocument(DidDocument didDocument, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) Future<TransactionResult>
Performs a transaction setting the specified didDocument as being associated with the address present inside the specified wallet. Optionally fee and broadcasting mode parameters can be specified.
setDidDocumentsList(List<DidDocument> didDocuments, Wallet wallet, {StdFee? fee, BroadcastingMode? mode, Client? client}) Future<TransactionResult>
Performs a transaction setting the didDocuments list as being associated with the address present inside the specified wallet. Optionally fee and broadcasting mode parameters can be specified.