@@ -26,7 +26,7 @@ Depending on the build tool, use the following methods to add related dependenci
2626<dependency >
2727 <groupId >com.platon.sdk</groupId >
2828 <artifactId >core</artifactId >
29- <version >0.15.1.9 </version >
29+ <version >1.1.0 </version >
3030</dependency >
3131```
3232
@@ -41,7 +41,7 @@ repositories {
4141
4242> gradle way of reference:
4343```
44- compile "com.platon.client:core:0.15.1.9 "
44+ compile "com.platon.client:core:1.1.0 "
4545```
4646
4747## Basic API Usage
@@ -1374,6 +1374,55 @@ Request<?, DebugEconomicConfig> req = currentValidWeb3j.getEconomicConfig();
13741374String debugEconomicConfig = req. send(). getEconomicConfigStr();
13751375```
13761376
1377+
1378+ ### getChainId
1379+
1380+ > Get chain ID
1381+ - ** parameters**
1382+
1383+ no
1384+
1385+ - ** return value**
1386+
1387+ ``` java
1388+ Request<?, PlatonChainId >
1389+ ```
1390+
1391+ The String in the PlatonChainId property is the corresponding stored data
1392+
1393+ - ** Example**
1394+
1395+ ``` java
1396+ Web3j platonWeb3j = Web3j . build(new HttpService (" http://127.0.0.1:6789" ));
1397+ Request<?, PlatonChainId > req = platonWeb3j. getChainId();
1398+ BigInteger chainId = req. send(). getChainId();
1399+ ```
1400+
1401+ ### getWaitSlashingNodeList
1402+
1403+ > Get the node with zero block, the list of nodes that are observed because of zero block
1404+
1405+ * ** parameters**
1406+
1407+ no
1408+
1409+ * ** return value**
1410+
1411+ ``` java
1412+ Request<?, DebugWaitSlashingNodeList >
1413+ ```
1414+
1415+ The ` WaitSlashingNode ` List Object in the ` DebugWaitSlashingNodeList ` property is the corresponding stored data
1416+
1417+ * ** Example**
1418+
1419+ ``` java
1420+ Web3j platonWeb3j = Web3j . build(new HttpService (" http://127.0.0.1:6789" ));
1421+ Request<?, DebugWaitSlashingNodeList > req = platonWeb3j. getWaitSlashingNodeList();
1422+ DebugWaitSlashingNodeList nodeList = req. send();
1423+ ```
1424+
1425+
13771426## System Contract Call
13781427
13791428System contracts mainly include economic model and governance related contracts:
0 commit comments