diff --git a/src/services/OrionBlockchain/index.ts b/src/services/OrionBlockchain/index.ts index a4d39b7..11ea1a6 100644 --- a/src/services/OrionBlockchain/index.ts +++ b/src/services/OrionBlockchain/index.ts @@ -82,6 +82,8 @@ class OrionBlockchain { this.getTargetAtomicSwapHistory = this.getTargetAtomicSwapHistory.bind(this); this.checkPoolInformation = this.checkPoolInformation.bind(this); this.checkIfHashUsed = this.checkIfHashUsed.bind(this); + this.getQueueLength = this.getQueueLength.bind(this); + this.getBlockNumber = this.getBlockNumber.bind(this); } get orionBlockchainWsUrl() { @@ -190,6 +192,10 @@ class OrionBlockchain { ); } + getBlockNumber() { + return fetchWithValidation(`https://${this.apiUrl}/api/blocknumber`, z.number().int()); + } + getQueueLength() { return fetchWithValidation(`https://${this.apiUrl}/api/queueLength`, z.number().int()); }