Hyperledger Fabric 2.4 - NodeJS SDK - Number of Blocks in the Ledger

Job ID: 33369430

Budget: $10 – $30 AUD

I have Hyperledger Fabric 2.4 installation and want to get a number of blocks by using Node.JS code.
Note - I can proivde the Node.JS code that can access smart contracts. It has "contract" object to comminicate with blockchain and smart contracts.