Skip to content

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

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

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

Conversation

@semsorock

@semsorocksemsorock commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

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.

claudeand 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

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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
FileDescription
tests/test_cardano_transactions.pyAdds tests for transaction_required_signers and transaction_cbor; adjusts a couple of integration assertions.
tests/test_cardano_network.pyAdds tests for network_eras.
tests/test_cardano_governance.pyNew test module covering governance endpoints (mocked + integration-gated).
tests/test_cardano_blocks.pyAdds tests for CBOR transaction listing endpoints on blocks.
tests/test_cardano_accounts.pyAdds tests for new account UTXO and transaction listing endpoints.
setup.pyBumps SDK version and updates description API version reference.
README.mdFixes dependency install instructions to use test-requirements.txt.
blockfrost/api/cardano/transactions.pyImplements transaction_required_signers and transaction_cbor.
blockfrost/api/cardano/network.pyImplements network_eras.
blockfrost/api/cardano/governance.pyNew governance API implementation (DReps + proposals endpoints).
blockfrost/api/cardano/blocks.pyImplements CBOR transaction list endpoints for latest block and specific block.
blockfrost/api/cardano/accounts.pyImplements account_utxos and account_transactions.
blockfrost/api/init.pyExposes newly added methods on BlockFrostApi.

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

Comment threadblockfrost/api/cardano/transactions.py Outdated
Comment threadblockfrost/api/cardano/network.py Outdated
slowbackspaceand 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>
@slowbackspaceslowbackspace changed the title Add new API endpoints for Blockfrost API v0.1.85Add new API endpoints for Blockfrost API v0.1.86Mar 16, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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
FileDescription
tests/test_cardano_transactions.pyAdds tests for transaction_required_signers and transaction_cbor; adjusts a couple integration assertions.
tests/test_cardano_pools.pyAdds tests for new pool_votes endpoint.
tests/test_cardano_network.pyAdds tests for new network_eras endpoint.
tests/test_cardano_governance.pyNew test module covering Cardano governance endpoints.
tests/test_cardano_blocks.pyAdds tests for CBOR transaction listing endpoints on blocks.
tests/test_cardano_accounts.pyAdds tests for new account_utxos and account_transactions endpoints.
setup.pyBumps SDK version and advertised Blockfrost API version.
README.mdUpdates install instructions to use test-requirements.txt.
blockfrost/api/nutlink.pyUpdates documentation URL references.
blockfrost/api/metrics.pyUpdates documentation URL references.
blockfrost/api/health.pyUpdates documentation URL references.
blockfrost/api/cardano/utils.pyUpdates documentation URL references.
blockfrost/api/cardano/transactions.pyAdds transaction_required_signers + transaction_cbor; updates doc URLs.
blockfrost/api/cardano/scripts.pyUpdates documentation URL references.
blockfrost/api/cardano/pools.pyAdds pool_votes; updates doc URLs.
blockfrost/api/cardano/network.pyAdds network_eras; updates doc URLs.
blockfrost/api/cardano/metadata.pyUpdates documentation URL references.
blockfrost/api/cardano/mempool.pyUpdates documentation URL references.
blockfrost/api/cardano/ledger.pyUpdates documentation URL references.
blockfrost/api/cardano/epochs.pyUpdates documentation URL references.
blockfrost/api/cardano/blocks.pyAdds CBOR transaction listing endpoints; updates doc URLs.
blockfrost/api/cardano/assets.pyUpdates documentation URL references.
blockfrost/api/cardano/addresses.pyUpdates documentation URL references.
blockfrost/api/cardano/accounts.pyAdds account_utxos + account_transactions; updates doc URLs.
blockfrost/api/cardano/governance.pyNew Cardano Governance API module.
blockfrost/api/init.pyWires new API methods into BlockFrostApi.
.github/workflows/publish-to-test-pypi.ymlUpdates actions + Python version used for publishing.
.github/workflows/package-test.ymlUpdates actions and Python test matrix.

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

Comment threadblockfrost/api/cardano/transactions.py
Comment threadsetup.py
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>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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
FileDescription
tests/test_cardano_transactions.pyAdds tests for new transaction endpoints and adjusts integration assertions for submit/evaluate.
tests/test_cardano_pools.pyAdds unit/integration tests for new pool_votes endpoint.
tests/test_cardano_network.pyAdds unit/integration tests for new network_eras endpoint.
tests/test_cardano_governance.pyIntroduces a new test module covering Cardano governance endpoints.
tests/test_cardano_blocks.pyAdds tests for new block transaction CBOR endpoints.
tests/test_cardano_accounts.pyAdds tests for new account UTXOs and account transactions endpoints.
setup.pyBumps version/metadata and updates supported Python version range.
README.mdUpdates install instructions to reference test-requirements.txt.
blockfrost/api/nutlink.pyUpdates documentation URLs for Nut.link endpoints.
blockfrost/api/metrics.pySwitches metrics endpoints to @request_wrapper and updates docs URLs.
blockfrost/api/health.pyUpdates documentation URLs for health endpoints.
blockfrost/api/cardano/utils.pyUpdates documentation URL for xpub-derived address endpoint.
blockfrost/api/cardano/transactions.pyAdds transaction_required_signers / transaction_cbor and updates decorators/docs URLs.
blockfrost/api/cardano/scripts.pyUpdates documentation URLs for script endpoints.
blockfrost/api/cardano/pools.pyAdds pool_votes endpoint and updates decorators/docs URLs.
blockfrost/api/cardano/network.pyAdds network_eras endpoint and updates docs URLs.
blockfrost/api/cardano/metadata.pyUpdates documentation URLs for metadata endpoints.
blockfrost/api/cardano/mempool.pyUpdates documentation URLs for mempool endpoints.
blockfrost/api/cardano/ledger.pyUpdates documentation URL for genesis endpoint.
blockfrost/api/cardano/governance.pyAdds new Cardano governance API module (dreps and proposals endpoints).
blockfrost/api/cardano/epochs.pyUpdates documentation URLs for epoch endpoints.
blockfrost/api/cardano/blocks.pyAdds block tx CBOR endpoints and updates docs URLs.
blockfrost/api/cardano/assets.pyUpdates documentation URLs for asset endpoints.
blockfrost/api/cardano/addresses.pyUpdates documentation URLs for address endpoints.
blockfrost/api/cardano/accounts.pyAdds account UTXOs/transactions endpoints and updates docs URLs.
blockfrost/api/init.pyExposes newly added API methods (governance, new Cardano endpoints) via BlockFrostApi.
.github/workflows/publish-to-test-pypi.ymlUpdates actions versions and pins publishing build to Python 3.12.
.github/workflows/package-test.ymlUpdates 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.

Comment threadblockfrost/api/metrics.py Outdated
Comment threadtests/test_cardano_pools.py Outdated
Comment threadtests/test_cardano_governance.py Outdated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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

Comment threadtests/test_cardano_pools.py

@slowbackspaceslowbackspace left a comment

Copy link
Copy Markdown
Contributor

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:masterMar 16, 2026
7 checks passed
This was referenced Mar 16, 2026
Sign up for freeto 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

@semsorock@slowbackspace@claude