newWithdrawStake method

  1. @override
Future<Uint8List> newWithdrawStake(
  1. SuiAddress signerAddress,
  2. WithdrawStakeTransaction txn
)
override

Implementation

@override
Future<Uint8List> newWithdrawStake(SuiAddress signerAddress,
    WithdrawStakeTransaction txn) async {
  final resp = await client.request(
      'unsafe_requestWithdrawStake',
      [
        signerAddress,
        txn.stakeSui,
        txn.gasPayment,
        txn.gasBudget.toString()
      ]
  );
  return base64Decode(resp['txBytes']);
}