@@ -49,7 +49,7 @@ API support all Ethereum [default networks](https://docs.etherscan.io/getting-st
4949- [ Sepolia] ( https://api-sepolia.etherscan.io/ )
5050
5151``` java
52- EtherScanAPI api= EtherScanAPI . build();
52+ EtherScanAPI api= EtherScanAPI . builder() . build();
5353EtherScanAPI apiGoerli= EtherScanAPI . builder(). withNetwork(EthNetworks . GORLI ). build();
5454EtherScanAPI apiSepolia= EtherScanAPI . builder(). withNetwork(EthNetworks . SEPOLIA ). build();
5555```
@@ -97,30 +97,30 @@ Below are examples for each API category.
9797
9898** Get Ether Balance for a single Address**
9999``` java
100- EtherScanAPI api= EtherScanAPI . build();
100+ EtherScanAPI api= EtherScanAPI . builder() . build();
101101Balance balance= api. account(). balance(" 0x8d4426f94e42f721C7116E81d6688cd935cB3b4F" );
102102```
103103
104104###Block API
105105
106106** Get uncles block for block height**
107107``` java
108- EtherScanAPI api= EtherScanAPI . build();
108+ EtherScanAPI api= EtherScanAPI . builder() . build();
109109Optional<UncleBlock > uncles= api. block(). uncles(200000 );
110110```
111111
112112###Contract API
113113** Request contract ABI from[ verified codes] ( https://etherscan.io/contractsVerified ) **
114114``` java
115- EtherScanAPI api= EtherScanAPI . build();
115+ EtherScanAPI api= EtherScanAPI . builder() . build();
116116Abi abi= api. contract(). contractAbi(" 0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413" );
117117```
118118
119119###Logs API
120120
121121** Get event logs for single topic**
122122``` java
123- EtherScanAPI api= EtherScanAPI . build();
123+ EtherScanAPI api= EtherScanAPI . builder() . build();
124124LogQuery query= LogQuery . builder(" 0x33990122638b9132ca29c723bdf037f1a891a70c" )
125125 .withTopic(" 0xf63780e752c6a54a94fc52715dbc5518a3b4c3c2833d301a204226548a2a8545" )
126126 .build();
@@ -129,7 +129,7 @@ List<Log> logs = api.logs().logs(query);
129129
130130** Get event logs for 3 topics with respectful operations**
131131``` java
132- EtherScanAPI api= EtherScanAPI . build();
132+ EtherScanAPI api= EtherScanAPI . builder() . build();
133133LogQuery query= LogQuery . builder(" 0x33990122638b9132ca29c723bdf037f1a891a70c" )
134134 .withBlockFrom(379224 )
135135 .withBlockTo(400000 )
@@ -148,29 +148,29 @@ List<Log> logs = api.logs().logs(query);
148148
149149** Get tx details with proxy endpoint**
150150``` java
151- EtherScanAPI api= EtherScanAPI . build();
151+ EtherScanAPI api= EtherScanAPI . builder() . build();
152152Optional<TxProxy > tx= api. proxy(). tx(" 0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1" );
153153```
154154
155155** Get block info with proxy endpoint**
156156``` java
157- EtherScanAPI api= EtherScanAPI . build();
157+ EtherScanAPI api= EtherScanAPI . builder() . build();
158158Optional<BlockProxy > block= api. proxy(). block(15215 );
159159```
160160
161161###Stats API
162162
163163** Statistic about last price**
164164``` java
165- EtherScanAPI api= EtherScanAPI . build();
165+ EtherScanAPI api= EtherScanAPI . builder() . build();
166166Price price= api. stats(). priceLast();
167167```
168168
169169###Transaction API
170170
171171** Request receipt status for tx**
172172``` java
173- EtherScanAPI api= EtherScanAPI . build();
173+ EtherScanAPI api= EtherScanAPI . builder() . build();
174174Optional<Boolean > status= api. txs(). receiptStatus(" 0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76" );
175175```
176176