Skip to content

Comments

fix(explorer): add block_timestamp to /api/address endpoint#470

Open
achalvs wants to merge 1 commit intomainfrom
fix/explorer-block-timestamp
Open

fix(explorer): add block_timestamp to /api/address endpoint#470
achalvs wants to merge 1 commit intomainfrom
fix/explorer-block-timestamp

Conversation

@achalvs
Copy link
Collaborator

@achalvs achalvs commented Jan 15, 2026

Summary

Adds the block_timestamp field to transaction data returned by the /api/address endpoint.

Problem

The app's activity heatmap relies on this timestamp field to display transaction times correctly. Without it, the IndexSupply API returns Unix timestamps in seconds as strings, but since the endpoint wasn't including block_timestamp in the select query, all transactions appeared in the most recent bucket (timestamp defaulted to undefined).

Changes

  • Add block_timestamp to the select fields in the txs query
  • Include timestamp field in the response object (Unix seconds as string)
  • Update TypeScript types to include the optional timestamp field

Testing

Type checks pass. The app will be able to parse these timestamps using Number(txInfo.timestamp) * 1000 to convert from Unix seconds to JavaScript milliseconds.

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Bundle Size Report

Metric Size Δ Change
Total 4.5 MB +99.0 B (+0.0%)
Gzip 1.2 MB +33.0 B (+0.0%)
Brotli 1.1 MB +57.0 B (+0.0%)

Compared against main branch (baseline from 1/16/2026, 2:07:18 AM)

@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Cloudflare Deployments

App Environment Status Preview
explorer devnet [OK] Deployed View Preview
explorer moderato [OK] Deployed View Preview
explorer presto [OK] Deployed View Preview
explorer testnet [OK] Deployed View Preview
fee-payer devnet [>>] Skipped No changes
fee-payer privy [>>] Skipped No changes
fee-payer testnet [>>] Skipped No changes
og - [>>] Skipped No changes
tokenlist - [>>] Skipped No changes

This adds the block_timestamp field to transaction data returned by the
/api/address endpoint. The app's activity heatmap relies on this field
to display transaction timestamps correctly.

Without this field, all transactions appear in the most recent bucket
since the timestamp defaults to undefined.
@o-az o-az force-pushed the fix/explorer-block-timestamp branch from 0341d00 to 108554e Compare January 16, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants