system_localListenAddresses - JSON-RPC Method
Description
Returns the local libp2p multiaddresses the node is listening on. Useful for debugging peer-to-peer connectivity and verifying node configuration.
Parameters
This method does not require parameters.
Returns
Array of strings (multiaddrs), for example:
[
"/ip4/127.0.0.1/tcp/30333/ws/p2p/12D3KooW…",
"/ip6/::1/tcp/30333/ws/p2p/12D3KooW…"
]
Request Example
curl -s https://api-moonriver.n.dwellir.com/YOUR_API_KEY \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "system_localListenAddresses",
"params": []
}'