Endpoint returning simple data about the closest block mined to the provided timestamp

"use strict";
const Shards = require("web3-shards");

const shards = Shards.API.Ethereum.V1;
shards.configure({
    apiKey: "YOUR_API_KEY", // Join the discord to get your api key. https://discord.com/invite/kJd8W7Nh7e
    maxRequestsPerSecond:5, // client-side limiter to prevent accidental burning
    logger: 1               // 0=none,1=errors,2=verbose
});

const getBlocks = async function() {
    const resp = await shards.blocks.getBlockAtTimestamp(1687465017);
    console.log(resp)
}

getBlocks();
Language
Click Try It! to start a request and see the response here!