eth_coinbase

获取当前节点的witness address

参数
无参数

返回值
DATA - 当前节点的witness address 。如果当前节点配置了多个witness address,则返回第一个;如果配置的witness address不合法或者该地址没有产生任何区块,则返回错误提示:”etherbase must be explicitly specified”

示例

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_coinbase", "params": []}'

结果

{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"etherbase must be explicitly specified","data":"{}"}}