/ 工具
■/ 工具搜尋
109 款工具
/ 區塊編號 ⇔ 時間戳
/ 選定的工具
■區塊編號 ⇔ 時間戳 - 免費 Web3 工具
在不同鏈上於區塊編號與時間戳之間轉換
■ 01
甚麼是出塊時間?
出塊時間是新區塊被加入區塊鏈所需的平均時間。不同的鏈有不同的出塊時間:Ethereum(約 12 秒)、Polygon(約 2 秒)、BSC(約 3 秒)、Arbitrum(約 0.25 秒)、Optimism(約 2 秒)。
■ 02
運作原理是甚麼?
區塊轉時間戳的轉換使用平均出塊時間與一個參考點(已知的區塊與時間戳)。此工具透過將區塊差乘以該鏈的平均出塊時間來計算時間差。…
■ 03
範例情境
涵蓋 Ethereum 區塊 18000000 轉時間戳、Polygon 區塊 50000000 轉時間戳與 Arbitrum 區塊 144000000 轉時間戳,讓你能快速比較常見的輸入與輸出。
/ 相關工具
/ 程式碼
■選定工具的原始碼,與右側的即時版本並列顯示。
/ 原始碼
TypeScript
typescript
// No external packages needed - pure Node.js/TypeScript
interface Chain {
name: string;
blockTime: number; // seconds per block
}
const chains: Record<string, Chain> = {
ethereum: { name: 'Ethereum', blockTime: 12 },
polygon: { name: 'Polygon', blockTime: 2 },