Skip to content

Commit d1c0e08

Browse files
committed
Update miner_getWork and miner_submitWork JSON RPC specification
1 parent 3079856 commit d1c0e08

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spec/JSON-RPC.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,26 +590,25 @@ Request Example
590590
Response Example
591591
```
592592
{"jsonrpc":"2.0","result":{
593-
"blockHash": "0x56642f04d519ae3262c7ba6facf1c5b11450ebaeb7955337cfbc45420d573077",
594-
"score": 100,
595-
"blockNumber": 30,
593+
"powHash": "0x56642f04d519ae3262c7ba6facf1c5b11450ebaeb7955337cfbc45420d573077",
594+
"target": 100
596595
},"id":null}
597596
```
598597

599598
## miner_submitWork
600599
Used for submitting a proof-of-work solution.
601600

602601
Params:
603-
1. nonce: `string`
604602
1. powHash: `string`
603+
1. seal: Array of `string`
605604

606605
Return Type: `bool`
607606

608607
Request Example
609608
```
610609
curl \
611610
-H 'Content-Type: application/json' \
612-
-d '{"jsonrpc": "2.0", "method": "miner_submitWork", "params": ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0x56642f04d519ae3262c7ba6facf1c5b11450ebaeb7955337cfbc45420d573077"], "id": null}' \
611+
-d '{"jsonrpc": "2.0", "method": "miner_submitWork", "params": ["0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", ["0x56642f04d519ae3262c7ba6facf1c5b11450ebaeb7955337cfbc45420d573077"]], "id": null}' \
613612
localhost:8080
614613
```
615614

0 commit comments

Comments
 (0)