Skip to content

Add new API endpoints for Blockfrost API v0.1.86#47

Merged
slowbackspace merged 12 commits intoblockfrost:masterfrom
semsorock:master
Mar 16, 2026
Merged

Add new API endpoints for Blockfrost API v0.1.86#47
slowbackspace merged 12 commits intoblockfrost:masterfrom
semsorock:master

Conversation

@semsorock
Copy link
Contributor

@semsorock semsorock commented Feb 23, 2026

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
  • Pools: pool_votes
  • Governance proposals by GovActionID (CIP-0129): proposal details, parameters, withdrawals, votes, metadata
  • Fix: update all 104 docs URLs to new working format
  • Update CI workflows (actions/checkout@v4, actions/setup-python@v5, Python 3.10/3.12/3.13)
  • Integration tests fixed
  • README.md typo fixed

Bump version to 0.7.0 (API v0.1.86).
All tests pass.

claude and others added 6 commits February 22, 2026 18:25
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
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
Add new API endpoints for Blockfrost API v0.1.85
Copy link
Contributor

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

Adds support for newer Blockfrost Cardano API endpoints (governance + additional CBOR/auxiliary endpoints) and expands the test suite accordingly, along with a package version bump reflecting the updated API surface.

Changes:

  • Add new Cardano Governance API module and expose its methods via BlockFrostApi.
  • Add new Cardano endpoints: transaction required signers + transaction CBOR, network eras, and block transactions CBOR (latest + by block).
  • Add/adjust unit + integration tests for the new endpoints; update docs/install instructions and bump package version.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_cardano_transactions.py Adds tests for transaction_required_signers and transaction_cbor; adjusts a couple of integration assertions.
tests/test_cardano_network.py Adds tests for network_eras.
tests/test_cardano_governance.py New test module covering governance endpoints (mocked + integration-gated).
tests/test_cardano_blocks.py Adds tests for CBOR transaction listing endpoints on blocks.
tests/test_cardano_accounts.py Adds tests for new account UTXO and transaction listing endpoints.
setup.py Bumps SDK version and updates description API version reference.
README.md Fixes dependency install instructions to use test-requirements.txt.
blockfrost/api/cardano/transactions.py Implements transaction_required_signers and transaction_cbor.
blockfrost/api/cardano/network.py Implements network_eras.
blockfrost/api/cardano/governance.py New governance API implementation (DReps + proposals endpoints).
blockfrost/api/cardano/blocks.py Implements CBOR transaction list endpoints for latest block and specific block.
blockfrost/api/cardano/accounts.py Implements account_utxos and account_transactions.
blockfrost/api/init.py Exposes newly added methods on BlockFrostApi.

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

slowbackspace and others added 4 commits March 16, 2026 12:35
Add pool_votes, governance proposal endpoints by gov_action_id
(CIP-0129), and update API version reference in setup.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@slowbackspace slowbackspace requested a review from Copilot March 16, 2026 12:07
@slowbackspace slowbackspace changed the title Add new API endpoints for Blockfrost API v0.1.85 Add new API endpoints for Blockfrost API v0.1.86 Mar 16, 2026
Copy link
Contributor

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

This PR updates the Blockfrost Python SDK to align with newer Blockfrost API docs/versioning, adds several new Cardano endpoints (notably Governance), expands test coverage for the new endpoints, and modernizes CI/PyPI publishing workflows.

Changes:

  • Added new Cardano API methods: governance endpoints, network eras, pool votes, account UTXOs/transactions, transaction required signers/CBOR, and block transactions CBOR.
  • Added/updated unit + integration tests for the new endpoints and adjusted a couple of integration assertions.
  • Updated package version/description and refreshed documentation links + GitHub Actions Python versions/actions.

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_cardano_transactions.py Adds tests for transaction_required_signers and transaction_cbor; adjusts a couple integration assertions.
tests/test_cardano_pools.py Adds tests for new pool_votes endpoint.
tests/test_cardano_network.py Adds tests for new network_eras endpoint.
tests/test_cardano_governance.py New test module covering Cardano governance endpoints.
tests/test_cardano_blocks.py Adds tests for CBOR transaction listing endpoints on blocks.
tests/test_cardano_accounts.py Adds tests for new account_utxos and account_transactions endpoints.
setup.py Bumps SDK version and advertised Blockfrost API version.
README.md Updates install instructions to use test-requirements.txt.
blockfrost/api/nutlink.py Updates documentation URL references.
blockfrost/api/metrics.py Updates documentation URL references.
blockfrost/api/health.py Updates documentation URL references.
blockfrost/api/cardano/utils.py Updates documentation URL references.
blockfrost/api/cardano/transactions.py Adds transaction_required_signers + transaction_cbor; updates doc URLs.
blockfrost/api/cardano/scripts.py Updates documentation URL references.
blockfrost/api/cardano/pools.py Adds pool_votes; updates doc URLs.
blockfrost/api/cardano/network.py Adds network_eras; updates doc URLs.
blockfrost/api/cardano/metadata.py Updates documentation URL references.
blockfrost/api/cardano/mempool.py Updates documentation URL references.
blockfrost/api/cardano/ledger.py Updates documentation URL references.
blockfrost/api/cardano/epochs.py Updates documentation URL references.
blockfrost/api/cardano/blocks.py Adds CBOR transaction listing endpoints; updates doc URLs.
blockfrost/api/cardano/assets.py Updates documentation URL references.
blockfrost/api/cardano/addresses.py Updates documentation URL references.
blockfrost/api/cardano/accounts.py Adds account_utxos + account_transactions; updates doc URLs.
blockfrost/api/cardano/governance.py New Cardano Governance API module.
blockfrost/api/init.py Wires new API methods into BlockFrostApi.
.github/workflows/publish-to-test-pypi.yml Updates actions + Python version used for publishing.
.github/workflows/package-test.yml Updates actions and Python test matrix.

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

Switch transaction sub-endpoints (stakes, delegations, withdrawals,
mirs, pool_updates, pool_retires, metadata, metadata_cbor, redeemers),
pool_relays, and metrics endpoints from @list_request_wrapper to
@request_wrapper since they are not paginated. Also align
python_requires and classifiers with CI matrix (3.10, 3.12, 3.13).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

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 Python SDK for newer API docs/endpoints (including Cardano governance) while modernizing packaging metadata, supported Python versions, CI, and test coverage for the added endpoints.

Changes:

  • Add new Cardano API surface: governance endpoints, pool votes, network eras, transaction required signers/CBOR, block txs CBOR, and account UTXOs/transactions.
  • Refresh documentation links across many existing endpoints and extend/adjust tests accordingly.
  • Bump package version to 0.7.0, raise python_requires to >=3.10, and update GitHub Actions workflows to newer actions/Python versions.

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_cardano_transactions.py Adds tests for new transaction endpoints and adjusts integration assertions for submit/evaluate.
tests/test_cardano_pools.py Adds unit/integration tests for new pool_votes endpoint.
tests/test_cardano_network.py Adds unit/integration tests for new network_eras endpoint.
tests/test_cardano_governance.py Introduces a new test module covering Cardano governance endpoints.
tests/test_cardano_blocks.py Adds tests for new block transaction CBOR endpoints.
tests/test_cardano_accounts.py Adds tests for new account UTXOs and account transactions endpoints.
setup.py Bumps version/metadata and updates supported Python version range.
README.md Updates install instructions to reference test-requirements.txt.
blockfrost/api/nutlink.py Updates documentation URLs for Nut.link endpoints.
blockfrost/api/metrics.py Switches metrics endpoints to @request_wrapper and updates docs URLs.
blockfrost/api/health.py Updates documentation URLs for health endpoints.
blockfrost/api/cardano/utils.py Updates documentation URL for xpub-derived address endpoint.
blockfrost/api/cardano/transactions.py Adds transaction_required_signers / transaction_cbor and updates decorators/docs URLs.
blockfrost/api/cardano/scripts.py Updates documentation URLs for script endpoints.
blockfrost/api/cardano/pools.py Adds pool_votes endpoint and updates decorators/docs URLs.
blockfrost/api/cardano/network.py Adds network_eras endpoint and updates docs URLs.
blockfrost/api/cardano/metadata.py Updates documentation URLs for metadata endpoints.
blockfrost/api/cardano/mempool.py Updates documentation URLs for mempool endpoints.
blockfrost/api/cardano/ledger.py Updates documentation URL for genesis endpoint.
blockfrost/api/cardano/governance.py Adds new Cardano governance API module (dreps and proposals endpoints).
blockfrost/api/cardano/epochs.py Updates documentation URLs for epoch endpoints.
blockfrost/api/cardano/blocks.py Adds block tx CBOR endpoints and updates docs URLs.
blockfrost/api/cardano/assets.py Updates documentation URLs for asset endpoints.
blockfrost/api/cardano/addresses.py Updates documentation URLs for address endpoints.
blockfrost/api/cardano/accounts.py Adds account UTXOs/transactions endpoints and updates docs URLs.
blockfrost/api/init.py Exposes newly added API methods (governance, new Cardano endpoints) via BlockFrostApi.
.github/workflows/publish-to-test-pypi.yml Updates actions versions and pins publishing build to Python 3.12.
.github/workflows/package-test.yml Updates actions versions and adjusts CI matrix to newer Python versions.
Comments suppressed due to low confidence (1)

setup.py:29

  • setup() uses the requires= field for importlib_metadata, but pip/setuptools do not treat requires as an install-time dependency (that’s what install_requires is for). If this dependency is still needed, it should be moved into install_requires; if it’s only for legacy Python versions, it can likely be removed entirely now that python_requires is >=3.10.
    python_requires='>=3.10, <4',
    requires=[
        "importlib_metadata",
    ],
    install_requires=[
        "requests",
    ],

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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

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

Adds support for newer Blockfrost API endpoints (Cardano governance + several new Cardano resources) and updates SDK packaging/testing to newer Python versions, alongside doc-link refreshes.

Changes:

  • Add new Cardano API methods: governance module, account UTXOs/transactions, network eras, pool votes, transaction required signers/CBOR, and block txs CBOR.
  • Extend/adjust test suite with new unit + integration tests for the added endpoints, and tighten a couple of existing assertions.
  • Bump package version / declared API version, raise minimum supported Python, and update CI/workflows + README install instructions.

Reviewed changes

Copilot reviewed 28 out of 28 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; adjusts a couple of integration assertions.
tests/test_cardano_pools.py Adds tests for new pool_votes endpoint (unit + integration).
tests/test_cardano_network.py Adds tests for new network_eras endpoint (unit + integration).
tests/test_cardano_governance.py New test module covering Cardano governance endpoints (unit + integration).
tests/test_cardano_blocks.py Adds tests for block_latest_transactions_cbor and block_transactions_cbor.
tests/test_cardano_accounts.py Adds tests for account_utxos and account_transactions.
setup.py Bumps SDK version/API description; raises python_requires to >=3.10; updates classifiers.
README.md Updates dependency install instructions to use test-requirements.txt.
blockfrost/api/nutlink.py Updates documentation links for nut.link endpoints.
blockfrost/api/metrics.py Switches metrics endpoints to @request_wrapper; updates documentation links.
blockfrost/api/health.py Updates documentation links for health endpoints.
blockfrost/api/cardano/utils.py Updates documentation link for xpub utility endpoint.
blockfrost/api/cardano/transactions.py Adds transaction_required_signers + transaction_cbor; updates doc links and wrappers.
blockfrost/api/cardano/scripts.py Updates documentation links for scripts endpoints.
blockfrost/api/cardano/pools.py Adds pool_votes; updates doc links and adjusts wrapper usage for relays.
blockfrost/api/cardano/network.py Adds network_eras; updates documentation link for network endpoint.
blockfrost/api/cardano/metadata.py Updates documentation links for metadata endpoints.
blockfrost/api/cardano/mempool.py Updates documentation links for mempool endpoints.
blockfrost/api/cardano/ledger.py Updates documentation link for genesis endpoint.
blockfrost/api/cardano/governance.py New Cardano governance API module with DRep/proposal endpoints.
blockfrost/api/cardano/epochs.py Updates documentation links for epoch endpoints.
blockfrost/api/cardano/blocks.py Adds CBOR transaction listing endpoints; updates documentation links.
blockfrost/api/cardano/assets.py Updates documentation links for assets endpoints.
blockfrost/api/cardano/addresses.py Updates documentation links for address endpoints.
blockfrost/api/cardano/accounts.py Adds account UTXO/transaction list endpoints; updates documentation links.
blockfrost/api/init.py Exposes newly added API methods on BlockFrostApi.
.github/workflows/publish-to-test-pypi.yml Updates action versions and sets publish job to Python 3.12.
.github/workflows/package-test.yml Updates action versions and test matrix to Python 3.10/3.12/3.13.

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

Copy link
Contributor

@slowbackspace slowbackspace left a comment

Choose a reason for hiding this comment

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

Special thanks to Alex, Copilot and Claude for this work of art

@slowbackspace slowbackspace merged commit 2e25f5a into blockfrost:master Mar 16, 2026
7 checks passed
This was referenced Mar 16, 2026
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.

4 participants