@@ -115,6 +115,7 @@ public class Client {
115115 "GetAssetIssueByName" ,
116116 "GetAssetIssueListByName" ,
117117 "GetBalance" ,
118+ "GetBandwidthPrices" ,
118119 "GetBlock" ,
119120 "GetBlockById" ,
120121 "GetBlockByIdOrNum" ,
@@ -132,6 +133,7 @@ public class Client {
132133 "GetAvailableUnfreezeCount" ,
133134 "GetCanWithdrawUnfreezeAmount" ,
134135 "GetDiversifier" ,
136+ "GetEnergyPrices" ,
135137 "GetExchange" ,
136138 "GetExpandedSpendingKey" ,
137139 "GetIncomingViewingKey" ,
@@ -140,6 +142,7 @@ public class Client {
140142 "GetMarketOrderListByPair" ,
141143 "GetMarketPairList" ,
142144 "GetMarketPriceByPair" ,
145+ "GetMemoFee" ,
143146 "GetNextMaintenanceTime" ,
144147 "GetNkFromNsk" ,
145148 "GetProposal" ,
@@ -258,6 +261,7 @@ public class Client {
258261 "GetAssetIssueByName" ,
259262 "GetAssetIssueListByName" ,
260263 "GetBalance" ,
264+ "GetBandwidthPrices" ,
261265 "GetBlock" ,
262266 "GetBlockById" ,
263267 "GetBlockByIdOrNum" ,
@@ -275,6 +279,7 @@ public class Client {
275279 "GetAvailableUnfreezeCount" ,
276280 "GetCanWithdrawUnfreezeAmount" ,
277281 "GetDiversifier" ,
282+ "GetEnergyPrices" ,
278283 "GetExchange" ,
279284 "GetExpandedSpendingKey" ,
280285 "GetIncomingViewingKey" ,
@@ -283,6 +288,7 @@ public class Client {
283288 "GetMarketOrderListByPair" ,
284289 "GetMarketPairList" ,
285290 "GetMarketPriceByPair" ,
291+ "GetMemoFee" ,
286292 "GetNextMaintenanceTime" ,
287293 "GetNkFromNsk" ,
288294 "GetProposal" ,
@@ -1533,6 +1539,36 @@ private void cancelAllUnfreezeV2(String[] parameters)
15331539 }
15341540 }
15351541
1542+ private void getBandwidthPrices (String [] parameters ) {
1543+ if (parameters .length > 0 ) {
1544+ System .out .println ("Use GetBandwidthPrices command with below syntax: " );
1545+ System .out .println ("GetBandwidthPrices" );
1546+ return ;
1547+ }
1548+ PricesResponseMessage result = walletApiWrapper .getBandwidthPrices ();
1549+ System .out .println ("The BandwidthPrices is " + result .getPrices ());
1550+ }
1551+
1552+ private void getEnergyPrices (String [] parameters ) {
1553+ if (parameters .length > 0 ) {
1554+ System .out .println ("Use GetEnergyPrices command with below syntax: " );
1555+ System .out .println ("GetEnergyPrices" );
1556+ return ;
1557+ }
1558+ PricesResponseMessage result = walletApiWrapper .getEnergyPrices ();
1559+ System .out .println ("The EnergyPrices is " + result .getPrices ());
1560+ }
1561+
1562+ private void getMemoFee (String [] parameters ) {
1563+ if (parameters .length > 0 ) {
1564+ System .out .println ("Use GetMemoFee command with below syntax: " );
1565+ System .out .println ("GetMemoFee" );
1566+ return ;
1567+ }
1568+ PricesResponseMessage result = walletApiWrapper .getMemoFee ();
1569+ System .out .println ("The MemoFee is " + result .getPrices ());
1570+ }
1571+
15361572 private void unfreezeAsset (String [] parameters ) throws IOException ,
15371573 CipherException , CancelException {
15381574 System .out .println ("Use UnfreezeAsset command like: " );
@@ -4938,6 +4974,18 @@ private void run() {
49384974 getBlockByIdOrNum (parameters );
49394975 break ;
49404976 }
4977+ case "getbandwidthprices" : {
4978+ getBandwidthPrices (parameters );
4979+ break ;
4980+ }
4981+ case "getenergyprices" : {
4982+ getEnergyPrices (parameters );
4983+ break ;
4984+ }
4985+ case "getmemofee" : {
4986+ getMemoFee (parameters );
4987+ break ;
4988+ }
49414989 case "exit" :
49424990 case "quit" : {
49434991 System .out .println ("Exit !!!" );
0 commit comments