post https://api.infstones.com/theta/mainnet/
This API returns the URLs of the connected peers.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
skip_edge_node | ❌ | Boolean | will not return edge nodes if set to true |
"params":[
{
"skip_edge_node":true
}
]
Result
Result Fields
Key | Type | Detail |
---|---|---|
peer_urls | Array | array 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>"
]
}
}