GetWalletAccountsRequest constructor

GetWalletAccountsRequest({
  1. String? encPubkey,
  2. String? b58pubkey,
  3. int? start,
  4. int? max,
  5. Map<String, dynamic>? params,
})

Implementation

GetWalletAccountsRequest(
    {String? encPubkey, String? b58pubkey, int? start, int? max, this.params})
    : super(method: 'getwalletaccounts') {
  this.params = Map();
  if (encPubkey != null) {
    this.params!['enc_pubkey'] = encPubkey;
  }
  if (b58pubkey != null) {
    this.params!['b58_pubkey'] = b58pubkey;
  }
  if (start != null) {
    this.params!['start'] = start;
  }
  if (max != null) {
    this.params!['max'] = max;
  }
}