requestDidPowerUpsList static method

Future<TransactionResult> requestDidPowerUpsList(
  1. List<RequestDidPowerUp> requestDidPowerUpsList,
  2. Wallet wallet, {
  3. StdFee? fee,
  4. BroadcastingMode? mode,
})

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.

Implementation

static Future<TransactionResult> requestDidPowerUpsList(
  List<RequestDidPowerUp> requestDidPowerUpsList,
  Wallet wallet, {
  StdFee? fee,
  BroadcastingMode? mode,
}) {
  final msgs = requestDidPowerUpsList
      .map((requestDidPowerUp) =>
          MsgRequestDidPowerUp(requestDidPowerUp: requestDidPowerUp))
      .toList();
  return TxHelper.createSignAndSendTx(
    msgs,
    wallet,
    fee: fee,
    mode: mode,
  );
}