File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ PHP client for [Etherscan API](https://docs.etherscan.io) (and its families like
77** Table of Contents**
88- [ Installation] ( #installation )
99- [ Quick Start] ( #quick-start )
10+ - [ Available bindings] ( #available-bindings )
11+ - [ Accounts] ( #accounts )
12+ - [ Contracts] ( #contracts )
1013
1114## Installation
1215
@@ -74,3 +77,18 @@ $erc721Events = $this->accounts->getErc721TokenTransferEvents('0x6975be450864c02
7477``` php
7578$erc1155Events = $this->accounts->getErc1155TokenTransferEvents('0x83f564d180b58ad9a02a449105568189ee7de8cb', '0x76be3b62873462d2142405439777e971754e8e77');
7679```
80+
81+ ### Contracts
82+
83+ [ Get Contract ABI] ( https://docs.etherscan.io/api-reference/endpoint/getabi#get-contract-abi-for-verified-contract-source-codes ) :
84+
85+ ``` php
86+ $abi = $this->contracts->getAbi('0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413');
87+ ```
88+
89+ [ Get Contract Source Code] ( https://docs.etherscan.io/api-reference/endpoint/getsourcecode ) :
90+
91+ ``` php
92+ $sourceCode = $this->contracts->getSourceCode('0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413');
93+ ```
94+
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ final class Contracts
1414 public function __construct (private readonly EtherscanClient $ client ) {}
1515
1616 /**
17- * @see https://docs.etherscan.io/api-endpoints/contracts #get-contract-abi-for-verified-contract-source-codes
17+ * @see https://docs.etherscan.io/api-reference/endpoint/getabi #get-contract-abi-for-verified-contract-source-codes
1818 */
1919 public function getAbi (string $ address ): string
2020 {
@@ -26,7 +26,7 @@ public function getAbi(string $address): string
2626 }
2727
2828 /**
29- * @see https://docs.etherscan.io/api-endpoints/contracts#get-contract-source-code-for-verified-contract-source-codes
29+ * @see https://docs.etherscan.io/api-reference/endpoint/getsourcecode
3030 *
3131 * @return ContractSourceCode[]
3232 */
You can’t perform that action at this time.
0 commit comments