Connect

Connect

Initiates a network connection to the specified address and port.

Note: The to parameter must include both a host address and a port. The host address may be a fully qualified domain name (FQDN) or an IP address, but port must be present in both cases.

Method: connect

Input parameters:

ParameterTypeRequiredDescription
toStringYesHostname or IP address and port of the target Ixian node.

Errors:

ErrorDescription
RPC_INVALID_PARAMSThe required parameter "to" was not supplied.
RPC_INTERNAL_ERRORAn unknown error occurred in the node. Please check the node log for details.

Output:

  • a JSON object containinly only the string "Connecting to node to" as the result.

Example:

GET http://localhost:8081/connect?to=192.168.1.25:10234

{
	"result": "Connecting to node 192.168.1.25",
	"error": null,
	"id": null
}