Skip to content

Commit 8eb19aa

Browse files
committed
doc: update README.md
1 parent b346929 commit 8eb19aa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,9 @@ $transactionInfo = $etherscan->proxy->getTransactionByHash('0x136f818dfe87b367ee
114114
```php
115115
$currentBlock = $etherscan->proxy->getBlockNumber();
116116
```
117+
118+
[eth_getBlockByNumber](https://docs.etherscan.io/api-reference/endpoint/ethgetblockbynumber):
119+
120+
```php
121+
$blockInfo = $etherscan->proxy->getBlockByNumber('0x10d4f');
122+
```

src/Module/Proxy/Proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getBlockNumber(): BigInteger
7676
}
7777

7878
/**
79-
* @see https://docs.etherscan.io/api-endpoints/geth-parity-proxy#eth_getblockbynumber
79+
* @see https://docs.etherscan.io/api-reference/endpoint/ethgetblockbynumber
8080
*/
8181
public function getBlockByNumber(string $hexBlockNumber): BlockInfo
8282
{

0 commit comments

Comments
 (0)