Developers & exchanges

Time Network API

Overview

Time (TIME) is a standalone currency with its own ledger — it is not a token on another blockchain. One unit is one second. New Time is created only by Proof-of-Presence mining: a wallet earns one second for each real second it stays connected, measured by the network's clock.

The API is read + relay only. It can show balances, blocks and transactions, and relay transfers that were already signed by the owner's private key. No API key, account or endpoint can move anyone's Time. There are no admin transfer functions.

  • Base URL: https://your-domain
  • Format: JSON (except plain-number supply endpoints). CORS is open.
  • Signatures: Ed25519. Hashes: SHA-256.
  • Block time: ~10 seconds while there is activity (and for 12 blocks after it, so deposits reach 6 confirmations in about a minute); one block every 10 minutes when the network is idle. Every block contains the hash of the previous block.

Units & decimals

Amounts are always integers in seconds. decimals = 0. Larger units are display names only:

minute = 60          day   = 86,400
hour   = 3,600       month = 2,592,000   (30 days)
                     year  = 31,536,000  (365 days)

An exchange that prefers a larger display unit can list 1 TIME = 1 second and show amounts with the helper formats, or quote in hours.

Addresses & keys

A private key is 32 random bytes (64 hex chars), used as an Ed25519 seed. The address is derived from the public key:

body     = hex( sha256(pubkey_32_bytes) )[0:40]
checksum = hex( sha256("TIME" + body) )[0:6]
address  = "Time" + body + checksum        # 50 characters: "Time" + lowercase hex

Exchanges generate one address per user, offline, with no call to the network. Addresses do not need to be registered — they exist as soon as they receive Time. Validate any address with GET /api/v1/address/{addr}/validate or locally with the checksum.

Signing transfers

The signed message is a pipe-separated UTF-8 string:

TIME-TX|1|{chain_id}|{from}|{to}|{amount}|{nonce}|{timestamp_ms}|{memo}
  • nonce = the sender's current nonce + 1 (from GET /api/v1/address/{from}). Each nonce can be used once, which makes replays impossible.
  • timestamp_ms must be within 10 minutes of network time.
  • memo: optional, 0–64 characters of any text except | and control characters.
  • Transfer fee: 0.

Then POST it:

POST /api/v1/tx/broadcast
{
  "chainId": "time-mainnet-1",
  "from": "Time…", "to": "Time…",
  "amount": 86400, "nonce": 7, "timestamp": 1764950400000, "memo": "",
  "pubkey": "64 hex", "signature": "128 hex"
}
→ { "accepted": true, "hash": "…" }

Reference implementation: /js/timecore.js (works in browsers and Node.js 22+).

Exchange integration

Deposits

  1. Generate a unique deposit address per user (offline).
  2. Scan blocks in order: GET /api/v1/blocks/latest, then GET /api/v1/blocks/{height} for each new height. Each block lists its transactions.
  3. Credit a deposit when a transfer or mint to one of your addresses has confirmations ≥ 6.
  4. Alternative: poll GET /api/v1/address/{addr}/txs?after_id={last_seen_id}.

Withdrawals

  1. Read the hot wallet's nonce: GET /api/v1/address/{hot}.
  2. Sign the transfer in your own signing service (keys never touch our servers).
  3. POST /api/v1/tx/broadcast, store the returned hash, and track it with GET /api/v1/tx/{hash} until confirmed.

Chain integrity

GET /api/v1/chain/verify recomputes every block hash and link. Exchanges can also mirror all blocks and verify them independently.

Supply (CoinGecko / CoinMarketCap)

Plain-number endpoints, in seconds:

GET/api/v1/supply/total
GET/api/v1/supply/circulating

Max supply: none. New supply = number of active miners per second, and each person can only add one second per second.

Transparency & audit

The whole ledger is public. Anyone can download every block and every transaction and re-check all of it without trusting the server: block hashes and links, transaction hashes, every signature, every balance replayed from zero, and that no wallet ever mined faster than one second per second.

GET/api/v1/audit

The network's own six checks (premine, supply, signed mints, speed limit, signed transfers, hash chain), re-run every 30 seconds.

GET/api/v1/export/blocks?from={height}&limit=1000

Blocks, oldest first.

GET/api/v1/export/txs?after_id={id}&limit=1000

Every sealed transaction, oldest first, with all fields needed to re-check it. Mining is written to the ledger in batches: one mint per mining session every 10 minutes, and when the session ends. Mints carry pubkey, signature and proof (sessionId:seq): the miner's own signed latest heartbeat TIME-MINE-BEAT|1|chainId|sessionId|seq, plus since: a mint of N seconds covers the N seconds starting there, which must end before the mint's timestamp, and a wallet's mints never cover the same moment twice. A mint's hash is sha256("TIME-MINT|chainId|to|amount|proof|since|timestamp").

GET/api/v1/address/{addr}/proof

How much a wallet mined, since when, and whether it stayed within one second per second.

# run the full audit on your own machine
node tools/time-cli.mjs audit --node https://your-domain --genesis <genesis-hash>

Launch fingerprint. genesis_hash and genesis_time in /api/v1/info identify the very first block. They never change: the node refuses to start with any other first block. Save the hash once; --genesis fails the audit if it ever differs.

Pauses. While the network is paused, transfers return 503 paused; /api/v1/health reports paused.

The audit code is /js/audit.js — the same file the Transparency page runs in the browser.

All endpoints

GET/api/v1/info

Name, symbol, chain id, decimals, units, address format, block time.

GET/api/v1/stats

Supply, active miners, accounts, transactions, tip block.

GET/api/v1/health
GET/api/v1/time

Network time in ms.

GET/api/v1/blocks/latest
GET/api/v1/blocks?limit=20&before={height}
GET/api/v1/blocks/{height | hash}

Block with all its transactions.

GET/api/v1/chain/verify
GET/api/v1/tx/{hash}

Includes block_height and confirmations.

GET/api/v1/txs/recent?limit=20
POST/api/v1/tx/broadcast
GET/api/v1/address/{addr}

Balance, nonce, mined total.

GET/api/v1/address/{addr}/txs?limit=25&before_id=…|after_id=…
GET/api/v1/address/{addr}/validate
GET/api/v1/richlist?limit=25
GET/api/v1/address/{addr}/mining?days=14

Seconds mined per UTC day, today, last 7 days and the current daily streak.

GET/api/v1/charts/daily?days=30

Network activity per UTC day: minted, transfers, volume and end-of-day supply (max 365 days, cached for a minute).

Account endpoints (/api/v1/auth/*, /api/v1/me/*, /api/v1/mine/*) power the website's login, wallet and miner. They need a logged-in session, aren't meant for exchanges, and may change.

CLI tool

# create an address (offline)
node tools/time-cli.mjs keygen
# balance
node tools/time-cli.mjs balance Time… --node https://your-domain
# send 1 day
node tools/time-cli.mjs send <privateKey> Time… 1d "invoice 42" --node https://your-domain
# sign offline, broadcast later
node tools/time-cli.mjs sign <privateKey> Time… 3600 <nonce>

Errors & limits

{ "error": "insufficient_funds", "message": "Not enough Time" }

Common codes: bad_signature (401), bad_nonce (409), duplicate (409), expired, insufficient_funds, bad_to, bad_amount, wrong_chain, bad_json, too_large (413), rate_limited (429), paused (503). Requests are rate-limited; contact us if you need a higher limit.