eth_mining

Returns whether witness mode is enabled and a local private key derives an address in the active SR set.

This compatibility method performs a limited node-state check. It returns true only when the node runs in --witness mode and an address derived directly from a localwitness private key belongs to the current active Super Representative (SR) set; otherwise it returns false. The implementation does not resolve localWitnessAccountAddress or the on-chain witness_permission, so a block producer that separates witness permission may also receive false. The result does not indicate proof-of-work mining.

Parameters

None

Example

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{"jsonrpc":"2.0","method":"eth_mining","params":[],"id":1}'
{"jsonrpc":"2.0","id":1,"result":false}