Skip to content

Commit c1080dd

Browse files
committed
doc: update README.md
1 parent 6365b7c commit c1080dd

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,22 @@ $transactions = $etherscan->accounts->getTransactions('0xc5102fE9359FD9a28f877a6
5555
$transactions = $etherscan->accounts->getInternalTransactionsByHash('0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170');
5656
```
5757

58+
[Get internal transactions by block range](https://docs.etherscan.io/api-reference/endpoint/txlistinternal-blockrange):
59+
```php
60+
$transactions = $this->accounts->getInternalTransactionsByBlockRange(13481773, 13491773);
61+
```
62+
63+
[Get ERC20 token transfers by address](https://docs.etherscan.io/api-reference/endpoint/tokentx):
64+
```php
65+
$erc20Events = $this->accounts->getErc20TokenTransferEvents('0x4e83362442b8d1bec281594cea3050c8eb01311c', '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2');
66+
```
67+
68+
[Get ERC721 token transfers by address](https://docs.etherscan.io/api-reference/endpoint/tokennfttx):
69+
```php
70+
$erc721Events = $this->accounts->getErc721TokenTransferEvents('0x6975be450864c02b4613023c2152ee0743572325', '0x06012c8cf97bead5deae237070f9587f8e7a266d');
71+
```
72+
73+
[Get ERC1155 token transfers by address](https://docs.etherscan.io/api-reference/endpoint/token1155tx):
74+
```php
75+
$erc1155Events = $this->accounts->getErc1155TokenTransferEvents('0x83f564d180b58ad9a02a449105568189ee7de8cb', '0x76be3b62873462d2142405439777e971754e8e77');
76+
```

src/Module/Accounts/Accounts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function getInternalTransactionsByHash(string $hash, int $page = 1, int $
169169
}
170170

171171
/**
172-
* @see https://docs.etherscan.io/api-endpoints/accounts#get-internal-transactions-by-block-range
172+
* @see https://docs.etherscan.io/api-reference/endpoint/txlistinternal-blockrange
173173
* @return InternalTransaction[]
174174
*/
175175
public function getInternalTransactionsByBlockRange(int $startBlock, int $endBlock, int $page = 1, int $offset = 10): array
@@ -216,7 +216,7 @@ public function getInternalTransactionsByBlockRange(int $startBlock, int $endBlo
216216
}
217217

218218
/**
219-
* @see https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc20-token-transfer-events-by-address
219+
* @see https://docs.etherscan.io/api-reference/endpoint/tokentx
220220
* @return Erc20Event[]
221221
*/
222222
public function getErc20TokenTransferEvents(?string $address = null, ?string $contractAddress = null, int $page = 1, int $offset = 100): array
@@ -285,7 +285,7 @@ public function getErc20TokenTransferEvents(?string $address = null, ?string $co
285285
}
286286

287287
/**
288-
* @see https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc721-token-transfer-events-by-address
288+
* @see https://docs.etherscan.io/api-reference/endpoint/tokennfttx
289289
* @return Erc721Event[]
290290
*/
291291
public function getErc721TokenTransferEvents(?string $address = null, ?string $contractAddress = null, int $page = 1, int $offset = 100): array
@@ -354,7 +354,7 @@ public function getErc721TokenTransferEvents(?string $address = null, ?string $c
354354
}
355355

356356
/**
357-
* @see https://docs.etherscan.io/api-endpoints/accounts#get-a-list-of-erc1155-token-transfer-events-by-address
357+
* @see https://docs.etherscan.io/api-reference/endpoint/token1155tx
358358
* @return Erc1155Event[]
359359
*/
360360
public function getErc1155TokenTransferEvents(?string $address = null, ?string $contractAddress = null, int $page = 1, int $offset = 100): array

0 commit comments

Comments
 (0)