This is an API implementation of an RPC call.
Returns the block hash
const response = await fetch('https://strax.nownodes.io/api/Consensus/getbestblockhash', { method: 'GET', headers: {}, }); const data = await response.json();