Skip to content

Commit 481baab

Browse files
committed
Removed deprecated eth_coinbase from json-rpc docs[#29747]
1 parent e5dc289 commit 481baab

File tree

1 file changed

+2
-27
lines changed
  • public/content/developers/docs/apis/json-rpc

1 file changed

+2
-27
lines changed

public/content/developers/docs/apis/json-rpc/index.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -383,31 +383,6 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}
383383
}
384384
```
385385

386-
### eth_coinbase {#eth_coinbase}
387-
388-
Returns the client coinbase address.
389-
390-
**Parameters**
391-
392-
None
393-
394-
**Returns**
395-
396-
`DATA`, 20 bytes - the current coinbase address.
397-
398-
**Example**
399-
400-
```js
401-
// Request
402-
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_coinbase","params":[],"id":64}'
403-
// Result
404-
{
405-
"id":64,
406-
"jsonrpc": "2.0",
407-
"result": "0x407d73d8a49eeb85d32cf465507dd71d507100c1"
408-
}
409-
```
410-
411386
### eth_chainId {#eth_chainId}
412387

413388
Returns the chain ID used for signing replay-protected transactions.
@@ -1671,10 +1646,10 @@ geth --http --dev console 2>>geth.log
16711646
16721647
This will start the HTTP RPC interface on `http://localhost:8545`.
16731648

1674-
We can verify that the interface is running by retrieving the Coinbase address and balance using [curl](https://curl.se). Please note that data in these examples will differ on your local node. If you want to try these commands, replace the request params in the second curl request with the result returned from the first.
1649+
We can verify that the interface is running by retrieving the Coinbase address(by obtaining the first address from the array of accounts) and balance using [curl](https://curl.se). Please note that data in these examples will differ on your local node. If you want to try these commands, replace the request params in the second curl request with the result returned from the first.
16751650

16761651
```bash
1677-
curl --data '{"jsonrpc":"2.0","method":"eth_coinbase", "id":1}' -H "Content-Type: application/json" localhost:8545
1652+
curl --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[]", "id":1}' -H "Content-Type: application/json" localhost:8545
16781653
{"id":1,"jsonrpc":"2.0","result":["0x9b1d35635cc34752ca54713bb99d38614f63c955"]}
16791654
16801655
curl --data '{"jsonrpc":"2.0","method":"eth_getBalance", "params": ["0x9b1d35635cc34752ca54713bb99d38614f63c955", "latest"], "id":2}' -H "Content-Type: application/json" localhost:8545

0 commit comments

Comments
 (0)