{% comment %}
This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT.
{% endcomment %}
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getconnectioncount.md" %}

##### GetConnectionCount
{% include helpers/subhead-links.md %}

{% assign summary_getConnectionCount="returns the number of connections to other nodes." %}

{% autocrossref %}

The `getconnectioncount` RPC {{summary_getConnectionCount}}

*Parameters: none*

*Result---the number of connections to other nodes*

{% itemplate ntpd1 %}
- n: "`result`"
  t: "number (int)"
  p: "Required<br>(exactly 1)"
  d: "The total number of connections to other nodes (both inbound and outbound)"

{% enditemplate %}

*Example from Dash Core 0.12.2*

{% highlight bash %}
dash-cli -testnet getconnectioncount
{% endhighlight bash %}

Result:

{% highlight json %}
14
{% endhighlight %}

*See also*

* [GetNetTotals][rpc getnettotals]: {{summary_getNetTotals}}
* [GetPeerInfo][rpc getpeerinfo]: {{summary_getPeerInfo}}
* [GetNetworkInfo][rpc getnetworkinfo]: {{summary_getNetworkInfo}}

{% endautocrossref %}
