Hi, Dear.
As a senior blockchain developer, I have a rich experience of 7+ years with solidity, NFT and cryptocurrency.
I can solve your problem in short time and I ensure the highest quality.
1) I can support a sample script you want.
2) I can get GectBlock number based on Node.js and web3.js.
Discuss more detail in chat.
Best Regards.