code: function initConsole() {
      $consoleRpcMethod.multiselect({
          classes: 'rpc-method',
          multiple: false,
          // Header: false,
          height: 500,
          selectedList: 1
      }).multiselectfilter({
          autoReset: true,
          placeholder: ''
      });
      $consoleRpcMethod.change(() => {
          const method = $consoleRpcMethod.val();
          if (method === 'null') {
              $consoleRpcSend.attr('disabled', true);
          } else {
              $consoleRpcSend.removeAttr('disabled').button('refresh');
          }
          if (rpcMethods[method]) {
              formConsoleParams();
          } else {
              $('#console-rpc-params').val('');
              $('#console-rpc-error').html('');
              $('#console-rpc-method-heading').html(method);
              $consoleFormParams.html('');
              $('#console-rpc-method-help').html('');
          }
      });
      $consoleRpcSend.attr('disabled', true).button().click(() => {
          const method = $consoleRpcMethod.find('option:selected').val();
          let params;
          try {
              params = JSON.parse('[' + $('#console-rpc-params').val() + ']');
          } catch (err) {
              alert('Parsing params: ' + err); // eslint-disable-line no-alert
              return;
          }
  
          $consoleRpcResponse.html('...');
          ipcRpc.send('rpc', [daemon, method, params], (err, data) => {
              if (err) {
                  $('#console-rpc-error').html('Error: ' + err.faultString);
              } else {
                  $('#console-rpc-error').html('');
              }
              $consoleRpcResponse.html(JSON.stringify(data, null, '  '));
          });
      });
      $consoleFormParams.on('change', 'input', setConsoleParams);
      $consoleFormParams.on('change', 'select', function () {
          setConsoleParams(this);
      });
  }
docs: RPC Console