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 Mar 2, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4173a0d to
4f2c3c8
Compare
There was a problem hiding this comment.
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, andblock_heightfields to/accounts/:stake_address/{delegations,registrations,withdrawals,mirs}response schemas. - Add
treasury_donationto/txs/:tx_hash(tx_content) response schema. - Bump spec/package version to
0.1.86and 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.
4f2c3c8 to
8e4a186
Compare
vladimirvolek
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
blockfrost/blockfrost-backend-ryo#306