File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -59,19 +59,19 @@ declare namespace ZtxChainSDK {
5959
6060 checkStatus ( ) : Response ;
6161
62- getTransactions ( blockNumber : number ) : Response ;
62+ getTransactions ( blockNumber : string ) : Response ;
6363
64- getInfo ( blockNumber : number ) : Response ;
64+ getInfo ( blockNumber : string ) : Response ;
6565
6666 getLatestInfo ( ) : Response ;
6767
68- getValidators ( blockNumber : number ) : Response ;
68+ getValidators ( blockNumber : string ) : Response ;
6969
7070 getLatestValidators ( ) : Response ;
7171
7272 getLatestReward ( ) : Response ;
7373
74- getFees ( blockNumber : number ) : Response ;
74+ getFees ( blockNumber : string ) : Response ;
7575
7676 getLatestFees ( ) : Response ;
7777 }
@@ -115,6 +115,7 @@ declare namespace ZtxChainSDK {
115115
116116 interface Response {
117117 result : any ;
118- error : any ;
118+ errorCode : any ;
119+ errorDesc : any ;
119120 }
120121}
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ const tokenInfo: ZtxChainSDK.Response = token.getInfo({});
3333const block : ZtxChainSDK . Block = sdk . block ;
3434const blockNumber : ZtxChainSDK . Response = block . getNumber ( ) ;
3535const blockStatus : ZtxChainSDK . Response = block . checkStatus ( ) ;
36- const blockTransactions : ZtxChainSDK . Response = block . getTransactions ( 1 ) ;
37- const blockInfo : ZtxChainSDK . Response = block . getInfo ( 1 ) ;
36+ const blockTransactions : ZtxChainSDK . Response = block . getTransactions ( "1" ) ;
37+ const blockInfo : ZtxChainSDK . Response = block . getInfo ( "1" ) ;
3838const latestBlockInfo : ZtxChainSDK . Response = block . getLatestInfo ( ) ;
39- const validators : ZtxChainSDK . Response = block . getValidators ( 1 ) ;
39+ const validators : ZtxChainSDK . Response = block . getValidators ( "1" ) ;
4040const latestValidators : ZtxChainSDK . Response = block . getLatestValidators ( ) ;
4141const latestReward : ZtxChainSDK . Response = block . getLatestReward ( ) ;
42- const fees : ZtxChainSDK . Response = block . getFees ( 1 ) ;
42+ const fees : ZtxChainSDK . Response = block . getFees ( "1" ) ;
4343const latestFees : ZtxChainSDK . Response = block . getLatestFees ( ) ;
4444
4545// Test Operation interface
You can’t perform that action at this time.
0 commit comments