Skip to content

feat: add tx_slot and block_time/height to /accounts/:sa/* and treasury_donation to /txs/:tx_hash#440

Merged
slowbackspace merged 4 commits intomasterfrom
feat/accounts/time
Mar 2, 2026
Merged

feat: add tx_slot and block_time/height to /accounts/:sa/* and treasury_donation to /txs/:tx_hash#440
slowbackspace merged 4 commits intomasterfrom
feat/accounts/time

Conversation

@slowbackspace
Copy link
Contributor

@slowbackspace slowbackspace commented Feb 27, 2026

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openapi Ready Ready Preview, Comment Mar 2, 2026 1:16pm

Request Review

@slowbackspace slowbackspace changed the title feat: add tx_slot and block_time to /accounts/:sa/* feat: add tx_slot and block_time to /accounts/:sa/* and treasury_donation to /txs/:tx_hash Mar 2, 2026
@slowbackspace slowbackspace changed the title feat: add tx_slot and block_time to /accounts/:sa/* and treasury_donation to /txs/:tx_hash feat: add tx_slot and block_time/height to /accounts/:sa/* and treasury_donation to /txs/:tx_hash Mar 2, 2026
@slowbackspace slowbackspace requested a review from Copilot March 2, 2026 13:09
@slowbackspace slowbackspace marked this pull request as ready for review March 2, 2026 13:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Blockfrost OpenAPI spec to expose additional transaction/block metadata on several account-related endpoints and adds a new treasury_donation field to transaction details, along with the usual generated artifact/version bumps.

Changes:

  • Add tx_slot, block_time, and block_height fields to /accounts/:stake_address/{delegations,registrations,withdrawals,mirs} response schemas.
  • Add treasury_donation to /txs/:tx_hash (tx_content) response schema.
  • Bump spec/package version to 0.1.86 and refresh generated OpenAPI outputs, TypeScript types, snapshots, and changelog.

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/tests/snapshots/get-schema-for-endpoint.test.ts.snap Snapshot updates reflecting the new required fields in generated schemas.
src/schemas/txs/tx_content.yaml Adds treasury_donation to the transaction content schema and marks it required.
src/schemas/accounts/account_withdrawal_content.yaml Adds tx_slot, block_time, block_height to withdrawals schema and marks them required.
src/schemas/accounts/account_registration_content.yaml Adds tx_slot, block_time, block_height to registrations schema and marks them required.
src/schemas/accounts/account_mir_content.yaml Adds tx_slot, block_time, block_height to MIR schema and marks them required.
src/schemas/accounts/account_delegation_content.yaml Adds tx_slot, block_time, block_height to delegations schema and marks them required.
src/generated-types.ts Regenerates TS types to include new fields on the affected schemas.
src/definitions.yaml Bumps spec version to 0.1.86.
package.json Bumps npm package version to 0.1.86.
openapi.yaml Regenerated merged OpenAPI YAML with new fields and version bump.
openapi.json Regenerated merged OpenAPI JSON with new fields and version bump.
docs/blockfrost-openapi.yaml Regenerated docs OpenAPI YAML with new fields and version bump.
blockfrost-openapi.yaml Regenerated Blockfrost OpenAPI YAML with new fields and version bump.
CHANGELOG.md Documents the newly added response fields under Unreleased.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@slowbackspace slowbackspace merged commit b474426 into master Mar 2, 2026
6 checks passed
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.

3 participants