defillama_block
Fetch the block height closest to a UNIX timestamp on one chain and return the height and timestamp fields. Use it to align on-chain events with a wall-clock time or with the price series from defillama_coin_prices.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"timestamp": "<timestamp>"
},
"name": "defillama_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain identifier such as ethereum. | |
| timestamp | Yes | UNIX timestamp in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |