miner_setExtra
描述:为矿工挖矿设定一个额外字符串数据。
parameter
数据类型 | 备注 |
---|---|
String, String | 希望在挖到的 block 中添加的额外数据 |
return
数据类型 | 备注 |
---|---|
Boolean | 为 true 时设置成功,否则返回失败 message 和 code |
example
Request:
curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "miner_setExtra", "params": ["extra data"]}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}