Skip to main content
Glama

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" }
Install Server

Other Tools from Moralis MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MoralisWeb3/moralis-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server