Updated on 2023-12-15 GMT+08:00

eth_mining

Introduction

This API returns true if the node is actively mining new blocks. It consumes 99 CUs.

Parameter Description

This method does not accept any parameters.

Return Value

true is returned if the node is actively mining new blocks, or false is returned.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"method":"eth_mining","params":[],"id":1,"jsonrpc":"2.0"}'