Skip to content

Latest commit

 

History

History
170 lines (103 loc) · 1.65 KB

File metadata and controls

170 lines (103 loc) · 1.65 KB

Node

node.address

Displays the address of the node key (the key that is used for network identity)

Parameters

None

Returns

None

Example

{% tabs %} {% tab title="Request" %}

{% endtab %}

{% tab title="Response" %}


{% endtab %} {% endtabs %}

node.enode

Displays the currently connected node enode value

Parameters

None

Returns

None

Example

{% tabs %} {% tab title="Request" %}

{% endtab %}

{% tab title="Response" %}


{% endtab %} {% endtabs %}

node.setNodeKey(key)

None

Parameters

None

Returns

None

Example

{% tabs %} {% tab title="Request" %}

{% endtab %}

{% tab title="Response" %}


{% endtab %} {% endtabs %}

node.switch(uri)

Changes the address of the node that the CLI is talking to

Parameters

None

Returns

None

Example

{% tabs %} {% tab title="Request" %}

{% endtab %}

{% tab title="Response" %}


{% endtab %} {% endtabs %}

node.switchLocal(port)

Changes the address of the node that the CLI is talking to localhost:port

Parameters

None

Returns

None

Example

{% tabs %} {% tab title="Request" %}

{% endtab %}

{% tab title="Response" %}


{% endtab %} {% endtabs %}

node.uri

Displays the URL of the node that the CLI is currently talking to

Parameters

None

Returns

None

Example

{% tabs %} {% tab title="Request" %}

{% endtab %}

{% tab title="Response" %}


{% endtab %} {% endtabs %}