setDidDocumentsList static method

Future<TransactionResult> setDidDocumentsList(
  1. List<DidDocument> didDocuments,
  2. Wallet wallet, {
  3. StdFee? fee,
  4. BroadcastingMode? mode,
  5. Client? client,
})

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.

Implementation

static Future<TransactionResult> setDidDocumentsList(
  List<DidDocument> didDocuments,
  Wallet wallet, {
  StdFee? fee,
  BroadcastingMode? mode,
  http.Client? client,
}) {
  final msgs = didDocuments
      .map((didDocument) => MsgSetDidDocument(didDocument: didDocument))
      .toList();
  return TxHelper.createSignAndSendTx(
    msgs,
    wallet,
    fee: fee,
    mode: mode,
    client: client,
  );
}