Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ Unreleased changes are in the `master` branch.

## [Unreleased]

## [0.1.92] - 2026-08-20

### Added

- New `/assets/{asset}/utxos` endpoint returning unspent UTxOs containing a specified native asset

### Changed

- Redeemer `purpose` enums (`/txs/{hash}/redeemers`, `/scripts/{script_hash}/redeemers`, `/mempool/{hash}`) now include the Conway governance purposes `vote` and `propose`. db-sync stores these purposes since Conway, and the API already returns them; the schema now permits what the backends emit.

## [0.1.91] - 2026-07-29

### Added
Expand Down
8 changes: 7 additions & 1 deletion blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: 0.1.91
version: 0.1.92
title: Blockfrost.io ~ API Documentation
x-logo:
url: https://staging.blockfrost.io/images/logo.svg
Expand Down Expand Up @@ -9539,6 +9539,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
script_hash:
Expand Down Expand Up @@ -10371,6 +10373,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
unit_mem:
Expand Down Expand Up @@ -11873,6 +11877,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
redeemer_data_hash:
Expand Down
8 changes: 7 additions & 1 deletion docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 0.1.91
version: 0.1.92
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
Expand Down Expand Up @@ -10120,6 +10120,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
script_hash:
Expand Down Expand Up @@ -11017,6 +11019,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
unit_mem:
Expand Down Expand Up @@ -12567,6 +12571,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
redeemer_data_hash:
Expand Down
2 changes: 1 addition & 1 deletion json-schema.json

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions openapi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "0.1.91",
"version": "0.1.92",
"title": "Blockfrost.io ~ API Documentation",
"x-logo": {
"url": "https://staging.blockfrost.io/images/logo.svg",
Expand Down Expand Up @@ -12873,7 +12873,9 @@
"spend",
"mint",
"cert",
"reward"
"reward",
"vote",
"propose"
],
"example": "spend",
"description": "Validation purpose"
Expand Down Expand Up @@ -14009,7 +14011,9 @@
"spend",
"mint",
"cert",
"reward"
"reward",
"vote",
"propose"
],
"example": "spend",
"description": "Validation purpose"
Expand Down Expand Up @@ -16074,7 +16078,9 @@
"spend",
"mint",
"cert",
"reward"
"reward",
"vote",
"propose"
],
"example": "spend",
"description": "Validation purpose"
Expand Down
8 changes: 7 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 0.1.91
version: 0.1.92
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
Expand Down Expand Up @@ -10120,6 +10120,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
script_hash:
Expand Down Expand Up @@ -11017,6 +11019,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
unit_mem:
Expand Down Expand Up @@ -12567,6 +12571,8 @@ components:
- mint
- cert
- reward
- vote
- propose
example: spend
description: Validation purpose
redeemer_data_hash:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/openapi",
"version": "0.1.91",
"version": "0.1.92",
"description": "OpenAPI specifications for blockfrost.io",
"repository": "git@github.com:blockfrost/openapi.git",
"author": "admin@blockfrost.io",
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blockfrost-openapi"
version = "0.1.91"
version = "0.1.92"
authors = ["contact@blockfrost.io"]
description = "Blockfrost OpenAPI types for Cardano"
license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ For more information, please visit [https://blockfrost.io](https://blockfrost.io

This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.

- API version: 0.1.91
- Package version: 0.1.91
- API version: 0.1.92
- Package version: 0.1.92
- Generator version: 7.20.0
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`

Expand Down Expand Up @@ -299,6 +299,7 @@ Class | Method | HTTP request | Description
- [AssetOnchainMetadataCip68Rft444](docs/AssetOnchainMetadataCip68Rft444.md)
- [AssetPolicyInner](docs/AssetPolicyInner.md)
- [AssetTransactionsInner](docs/AssetTransactionsInner.md)
- [AssetUtxoContentInner](docs/AssetUtxoContentInner.md)
- [AssetsInner](docs/AssetsInner.md)
- [BlockContent](docs/BlockContent.md)
- [BlockContentAddressesInner](docs/BlockContentAddressesInner.md)
Expand Down
57 changes: 57 additions & 0 deletions rust/src/models/asset_utxo_content_inner.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AssetUtxoContentInner {
/// Bech32 encoded address holding the UTxO
#[serde(rename = "address")]
pub address: String,
/// Transaction hash of the UTXO
#[serde(rename = "tx_hash")]
pub tx_hash: String,
/// UTXO index in the transaction
#[serde(rename = "output_index")]
pub output_index: i32,
#[serde(rename = "amount")]
pub amount: Vec<models::TxContentOutputAmountInner>,
/// Block hash of the UTXO
#[serde(rename = "block")]
pub block: String,
/// Block number of the UTXO
#[serde(rename = "block_height")]
pub block_height: i32,
/// UNIX time of the block
#[serde(rename = "block_time")]
pub block_time: i32,
/// The hash of the transaction output datum
#[serde(rename = "data_hash", deserialize_with = "Option::deserialize")]
pub data_hash: Option<String>,
/// CBOR encoded inline datum
#[serde(rename = "inline_datum", deserialize_with = "Option::deserialize")]
pub inline_datum: Option<String>,
/// JSON representation of the inline datum
#[serde(rename = "inline_datum_json", deserialize_with = "Option::deserialize")]
pub inline_datum_json: Option<serde_json::Value>,
/// The hash of the reference script of the output
#[serde(rename = "reference_script_hash", deserialize_with = "Option::deserialize")]
pub reference_script_hash: Option<String>,
}

impl AssetUtxoContentInner {
pub fn new(address: String, tx_hash: String, output_index: i32, amount: Vec<models::TxContentOutputAmountInner>, block: String, block_height: i32, block_time: i32, data_hash: Option<String>, inline_datum: Option<String>, inline_datum_json: Option<serde_json::Value>, reference_script_hash: Option<String>) -> AssetUtxoContentInner {
AssetUtxoContentInner {
address,
tx_hash,
output_index,
amount,
block,
block_height,
block_time,
data_hash,
inline_datum,
inline_datum_json,
reference_script_hash,
}
}
}

4 changes: 4 additions & 0 deletions rust/src/models/mempool_tx_content_redeemers_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ pub enum Purpose {
Cert,
#[serde(rename = "reward")]
Reward,
#[serde(rename = "vote")]
Vote,
#[serde(rename = "propose")]
Propose,
}

impl Default for Purpose {
Expand Down
2 changes: 2 additions & 0 deletions rust/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ pub mod asset_policy_inner;
pub use self::asset_policy_inner::AssetPolicyInner;
pub mod asset_transactions_inner;
pub use self::asset_transactions_inner::AssetTransactionsInner;
pub mod asset_utxo_content_inner;
pub use self::asset_utxo_content_inner::AssetUtxoContentInner;
pub mod assets_inner;
pub use self::assets_inner::AssetsInner;
pub mod block_content;
Expand Down
4 changes: 4 additions & 0 deletions rust/src/models/script_redeemers_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ pub enum Purpose {
Cert,
#[serde(rename = "reward")]
Reward,
#[serde(rename = "vote")]
Vote,
#[serde(rename = "propose")]
Propose,
}

impl Default for Purpose {
Expand Down
4 changes: 4 additions & 0 deletions rust/src/models/tx_content_redeemers_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ pub enum Purpose {
Cert,
#[serde(rename = "reward")]
Reward,
#[serde(rename = "vote")]
Vote,
#[serde(rename = "propose")]
Propose,
}

impl Default for Purpose {
Expand Down
2 changes: 1 addition & 1 deletion src/definitions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: 0.1.91
version: 0.1.92
title: Blockfrost.io ~ API Documentation
x-logo:
url: https://staging.blockfrost.io/images/logo.svg
Expand Down
6 changes: 3 additions & 3 deletions src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9441,7 +9441,7 @@ export interface components {
* @example spend
* @enum {string}
*/
purpose: "spend" | "mint" | "cert" | "reward";
purpose: "spend" | "mint" | "cert" | "reward" | "vote" | "propose";
/**
* @description Script hash
* @example ec26b89af41bef0f7585353831cb5da42b5b37185e0c8a526143b824
Expand Down Expand Up @@ -10166,7 +10166,7 @@ export interface components {
* @example spend
* @enum {string}
*/
purpose: "spend" | "mint" | "cert" | "reward";
purpose: "spend" | "mint" | "cert" | "reward" | "vote" | "propose";
/**
* @description The budget in Memory to run a script
* @example 1700
Expand Down Expand Up @@ -11469,7 +11469,7 @@ export interface components {
* @example spend
* @enum {string}
*/
purpose: "spend" | "mint" | "cert" | "reward";
purpose: "spend" | "mint" | "cert" | "reward" | "vote" | "propose";
/**
* @description Datum hash of the redeemer
* @example 923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/mempool/mempool_tx_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ properties:
description: Index of the redeemer within the transaction
purpose:
type: string
enum: [spend, mint, cert, reward]
enum: [spend, mint, cert, reward, vote, propose]
example: "spend"
description: Validation purpose
unit_mem:
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/scripts/script_redeemers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ items:
description: The index of the redeemer pointer in the transaction
purpose:
type: string
enum: [spend, mint, cert, reward]
enum: [spend, mint, cert, reward, vote, propose]
example: "spend"
description: Validation purpose
redeemer_data_hash:
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/txs/tx_content_redeemers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ items:
description: Index of the redeemer within the transaction
purpose:
type: string
enum: [spend, mint, cert, reward]
enum: [spend, mint, cert, reward, vote, propose]
example: "spend"
description: Validation purpose
script_hash:
Expand Down
6 changes: 6 additions & 0 deletions test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19013,6 +19013,8 @@ State \`gc\` means that a previously \`unpinned\` item has been garbage collecte
"mint",
"cert",
"reward",
"vote",
"propose",
],
"example": "spend",
"type": "string",
Expand Down Expand Up @@ -25449,6 +25451,8 @@ relative to the start of the network
"mint",
"cert",
"reward",
"vote",
"propose",
],
"example": "spend",
"type": "string",
Expand Down Expand Up @@ -27746,6 +27750,8 @@ relative to the start of the network
"mint",
"cert",
"reward",
"vote",
"propose",
],
"example": "spend",
"type": "string",
Expand Down
Loading