Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 664 Bytes

connect.md

File metadata and controls

28 lines (16 loc) · 664 Bytes

< EON API Documentation

node/connect

Force the node to try to establish a connection to a specific peer

Parameters

Name Type Required Description
host string yes Host to connect
port int yes Port

Example request

 curl -sX POST 'http://127.0.0.1:9085/node/connect' -H 'Content-Type: application/json' -H 'accept: application/json' -d '{"host":"myhost.com", "port": 8090}'  

Example response

{
    "result" : {
        "connectedTo" : "143.42.26.149:5674"
    }
 }