theta.GetPeerURLs

This API returns the URLs of the connected peers.

Parameters

Object NameRequiredTypeDetail
skip_edge_nodeBooleanwill not return edge nodes if set to true
"params":[
    {
        "skip_edge_node":true
    }
]

Result

Result Fields

KeyTypeDetail
peer_urlsArrayarray of peers address

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"theta.GetPeerURLs","params":[{"skip_edge_node":true}],"id":1}'

Return

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "peer_urls": [
            "<ip_address>:<port>"
        ]
    }
}
Language
Click Try It! to start a request and see the response here!