diff --git a/src/index.js b/src/index.js
index 6caad6c..36a28e8 100644
--- a/src/index.js
+++ b/src/index.js
@@ -37,8 +37,15 @@ app.get('/', function (req, res) {
res.send('This is tornado.cash Relayer service. Check the /status for settings')
})
+
app.get('/status', async function (req, res) {
let nonce = await redisClient.get('nonce')
+ let latestBlock = null
+ try {
+ latestBlock = await web3.eth.getBlockNumber()
+ } catch(e) {
+ console.error('Problem with RPC', e)
+ }
const { ethPrices } = fetcher
res.json({
relayerAddress: web3.eth.defaultAccount,
@@ -48,7 +55,8 @@ app.get('/status', async function (req, res) {
ethPrices,
relayerServiceFee,
nonce,
- version
+ version,
+ latestBlock
})
})