@@ -48,7 +48,7 @@ final Dogecoin doge = caClient.connectToDoge(CryptoApisConstants.MAINNET);
4848### Generate new address
4949
5050``` java
51- final EthAddressService ethAddressService = eth. getEthAddressService ();
51+ final AddressService ethAddressService = eth. getAddressService ();
5252
5353ApiResponse res = ethAddressService. generateNewAddress();
5454System . out. println(res. getResponse());
@@ -123,7 +123,7 @@ System.out.println(res.getResponse());
123123### Get block info by number
124124
125125``` java
126- final EthBlockService ethBlockService = eth. getEthBlockService ();
126+ final BlockService ethBlockService = eth. getBlockService ();
127127ApiResponse res = ethBlockService. getBlock(6123321 );
128128System . out. println(res. getResponse());
129129```
@@ -157,7 +157,7 @@ System.out.println(res.getResponse());
157157### Get an existing transaction by a given hash:
158158
159159``` java
160- final EthTransactionService ethTransactionService = eth. getEthTransactionService ();
160+ final TransactionService ethTransactionService = eth. getTransactionService ();
161161ApiResponse res = ethTransactionService. getTx(" 0xe7abcffe85acf8e6d3186f1378d201b0857c41d300885c9c3c2f2c72afaecbcd" );
162162System . out. println(res. getResponse());
163163```
@@ -216,7 +216,7 @@ If transaction is not found, the following message will be printed:
216216### Create payment forwarding using an account
217217
218218``` java
219- final EthPaymentService ethPaymentService = eth. getEthPaymentService ();
219+ final PaymentService ethPaymentService = eth. getPaymentService ();
220220ApiResponse res = ethPaymentService. createPFPwd(" 0x7857af2143cb06ddc1dab5d7844c9402e89717cb" , " 0x4ab47e7b0204d6b3bf0e956db14e63142b9b5ab8" ,
221221 " https://somepoint.com" , " your-password-123" , 6 , 11000000000L , 21000 );
222222System . out. println(res. getResponse());
@@ -257,7 +257,7 @@ If password is misspelled the following will be printed:
257257### Create, sign and send a transaction to the blockchain
258258
259259``` java
260- final EthTransactionService ethTransactionService = eth. getEthTransactionService ();
260+ final TransactionService ethTransactionService = eth. getTransactionService ();
261261final String from = " 0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff" ;
262262final String to = " 0x0cb1883c01377f45ee5d7448a32b5ac1709afc11" ;
263263final BigInteger gasPrice = BigInteger . valueOf(8000000000L );
0 commit comments