curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/net_listening \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "net_listening",
"id": 64,
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": true
}
TRON API method that returns whether the client is actively listening for network connections. This method provides Ethereum-compatible interface for TRON blockchain.
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/net_listening \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "net_listening",
"id": 64,
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": true
}
jsonrpc
— the JSON-RPC protocol version (always “2.0”)method
— the method name (always “net_listening”)params
— empty array (no parameters required)id
— request identifier (number or string)jsonrpc
— the JSON-RPC protocol version (“2.0”)id
— the request identifier that matches the requestresult
— boolean value indicating whether the client is listening for connectionsjsonrpc net_listening
method is used for:
Boolean indicating whether the client is listening for connections
The response is of type object
.
Was this page helpful?