Moralis MCP Server

Official
by MoralisWeb3

getDateToBlock

Convert a specific date to the closest blockchain block number using Moralis MCP Server. Input a Unix timestamp or date string to retrieve accurate block data for blockchain applications.

Instructions

Get the closest block given the date.

Input Schema

NameRequiredDescriptionDefault
dateNoUnix date in milliseconds or a datestring (format in seconds or datestring accepted by momentjs)

Input Schema (JSON Schema)

{ "properties": { "date": { "description": "Unix date in milliseconds or a datestring (format in seconds or datestring accepted by momentjs)", "type": "string" } }, "type": "object" }

You must be authenticated.

Other Tools from Moralis MCP Server

Related Tools

ID: paxjr6tzn8