Add new API endpoints for Blockfrost API v0.1.85#1
Merged
Conversation
Update the SDK to match all API changes since v0.1.37, including: - Accounts: account_utxos (v0.1.69), account_transactions (v0.1.82) - Blocks: block_latest_transactions_cbor (v0.1.74), block_transactions_cbor (v0.1.75) - Transactions: transaction_required_signers (v0.1.61), transaction_cbor (v0.1.64) - Network: network_eras (v0.1.46) - Governance (new): Full Conway-era governance support with DRep and proposal endpoints including dreps listing, drep details, delegators, metadata, updates, votes, proposals listing, proposal details, parameters, withdrawals, votes, and metadata Bump version to 0.7.0 (API v0.1.85). All 211 tests pass. https://claude.ai/code/session_01FSq7HNQWih59Y5NX349Diq
There was a problem hiding this comment.
Pull request overview
Updates the Python SDK surface area to align with Blockfrost API changes up to v0.1.85, adding newly introduced Cardano endpoints (including Conway governance) plus corresponding tests and a package version bump.
Changes:
- Added new Cardano API methods for accounts, blocks, transactions, network eras, and a new governance module (DReps + proposals).
- Added/extended unit + integration tests covering the new endpoints.
- Bumped package version to
0.7.0and updated the package description to APIv0.1.85.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_cardano_transactions.py | Adds tests for transaction_required_signers and transaction_cbor. |
| tests/test_cardano_network.py | Adds tests for network_eras. |
| tests/test_cardano_governance.py | New test suite covering governance (DReps + proposals) endpoints. |
| tests/test_cardano_blocks.py | Adds tests for block transaction CBOR endpoints. |
| tests/test_cardano_accounts.py | Adds tests for account_utxos and account_transactions. |
| setup.py | Bumps SDK version and updates API version in description. |
| blockfrost/api/cardano/transactions.py | Adds transaction_required_signers and transaction_cbor methods. |
| blockfrost/api/cardano/network.py | Adds network_eras method. |
| blockfrost/api/cardano/governance.py | New governance API implementation (DReps + proposals). |
| blockfrost/api/cardano/blocks.py | Adds block_latest_transactions_cbor and block_transactions_cbor methods. |
| blockfrost/api/cardano/accounts.py | Adds account_utxos and account_transactions methods. |
| blockfrost/api/init.py | Wires new Cardano API methods into BlockFrostApi. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Update governance test fixtures to use valid mainnet DRep and proposal IDs that exist on-chain. Fix transaction submit test to check status_code instead of removed error string. Update evaluate_cbor test to match new Ogmios response structure with ScriptFailures nesting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix failing integration tests for governance and transaction endpoints
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.
Update the SDK to match all API changes since v0.1.37, including:
proposal endpoints including dreps listing, drep details, delegators,
metadata, updates, votes, proposals listing, proposal details,
parameters, withdrawals, votes, and metadata
Bump version to 0.7.0 (API v0.1.85).
All tests pass.