Skip to content

Commit b474426

Browse files
Merge pull request #440 from blockfrost/feat/accounts/time
feat: add tx_slot and block_time/height to /accounts/:sa/* and treasury_donation to /txs/:tx_hash
2 parents 62634f9 + 8e4a186 commit b474426

15 files changed

Lines changed: 600 additions & 28 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ Unreleased changes are in the `master` branch.
99

1010
## [Unreleased]
1111

12+
## [0.1.86] - 2026-03-02
13+
14+
### Added
15+
16+
- New `tx_slot`, `block_time`, and `block_height` fields in `/accounts/:stake_address/delegations`, `/accounts/:stake_address/registrations`, `/accounts/:stake_address/withdrawals`, and `/accounts/:stake_address/mirs` responses
17+
- New `treasury_donation` field in `/txs/:tx_hash` response
18+
1219
## [0.1.85] - 2026-02-11
1320

1421
### Added

blockfrost-openapi.yaml

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.85
3+
version: 0.1.86
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg
@@ -8266,6 +8266,10 @@ components:
82668266
type: boolean
82678267
example: true
82688268
description: True if contract script passed validation
8269+
treasury_donation:
8270+
type: string
8271+
example: '0'
8272+
description: Treasury donation in Lovelaces
82698273
required:
82708274
- hash
82718275
- block
@@ -8289,6 +8293,7 @@ components:
82898293
- asset_mint_or_burn_count
82908294
- redeemer_count
82918295
- valid_contract
8296+
- treasury_donation
82928297
tx_content_utxo:
82938298
type: object
82948299
properties:
@@ -8974,20 +8979,38 @@ components:
89748979
pool_id:
89758980
type: string
89768981
description: Bech32 ID of pool being delegated to
8982+
tx_slot:
8983+
type: integer
8984+
description: Slot of the transaction containing the delegation
8985+
block_time:
8986+
type: integer
8987+
description: Block creation time in UNIX time of the transaction containing the delegation
8988+
block_height:
8989+
type: integer
8990+
description: Block height of the transaction containing the delegation
89778991
required:
89788992
- active_epoch
89798993
- tx_hash
89808994
- amount
89818995
- pool_id
8996+
- tx_slot
8997+
- block_time
8998+
- block_height
89828999
example:
89839000
- active_epoch: 210
89849001
tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
89859002
amount: '12695385'
89869003
pool_id: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
9004+
tx_slot: 45093580
9005+
block_time: 1646437200
9006+
block_height: 6745358
89879007
- active_epoch: 242
89889008
tx_hash: 1a0570af966fb355a7160e4f82d5a80b8681b7955f5d44bec0dde628516157f0
89899009
amount: '12691385'
89909010
pool_id: pool1kchver88u3kygsak8wgll7htr8uxn5v35lfrsyy842nkscrzyvj
9011+
tx_slot: 48093580
9012+
block_time: 1649033600
9013+
block_height: 7126896
89919014
account_registration_content:
89929015
type: array
89939016
items:
@@ -9002,14 +9025,32 @@ components:
90029025
- registered
90039026
- deregistered
90049027
description: Action in the certificate
9028+
tx_slot:
9029+
type: integer
9030+
description: Slot of the transaction containing the (de)registration certificate
9031+
block_time:
9032+
type: integer
9033+
description: Block creation time in UNIX time of the transaction containing the (de)registration certificate
9034+
block_height:
9035+
type: integer
9036+
description: Block height of the transaction containing the (de)registration certificate
90059037
required:
90069038
- tx_hash
90079039
- action
9040+
- tx_slot
9041+
- block_time
9042+
- block_height
90089043
example:
90099044
- tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
90109045
action: registered
9046+
tx_slot: 45093580
9047+
block_time: 1646437200
9048+
block_height: 6745358
90119049
- tx_hash: 1a0570af966fb355a7160e4f82d5a80b8681b7955f5d44bec0dde628516157f0
90129050
action: deregistered
9051+
tx_slot: 48093580
9052+
block_time: 1649033600
9053+
block_height: 7126896
90139054
account_withdrawal_content:
90149055
type: array
90159056
items:
@@ -9021,14 +9062,32 @@ components:
90219062
amount:
90229063
type: string
90239064
description: Withdrawal amount in Lovelaces
9065+
tx_slot:
9066+
type: integer
9067+
description: Slot of the transaction containing the withdrawal
9068+
block_time:
9069+
type: integer
9070+
description: Block creation time in UNIX time of the transaction containing the withdrawal
9071+
block_height:
9072+
type: integer
9073+
description: Block height of the transaction containing the withdrawal
90249074
required:
90259075
- tx_hash
90269076
- amount
9077+
- tx_slot
9078+
- block_time
9079+
- block_height
90279080
example:
90289081
- tx_hash: 48a9625c841eea0dd2bb6cf551eabe6523b7290c9ce34be74eedef2dd8f7ecc5
90299082
amount: '454541212442'
9083+
tx_slot: 45093580
9084+
block_time: 1646437200
9085+
block_height: 6745358
90309086
- tx_hash: 4230b0cbccf6f449f0847d8ad1d634a7a49df60d8c142bb8cc2dbc8ca03d9e34
90319087
amount: '97846969'
9088+
tx_slot: 48093580
9089+
block_time: 1649033600
9090+
block_height: 7126896
90329091
account_mir_content:
90339092
type: array
90349093
items:
@@ -9040,14 +9099,32 @@ components:
90409099
amount:
90419100
type: string
90429101
description: MIR amount in Lovelaces
9102+
tx_slot:
9103+
type: integer
9104+
description: Slot of the transaction containing the MIR
9105+
block_time:
9106+
type: integer
9107+
description: Block creation time in UNIX time of the transaction containing the MIR
9108+
block_height:
9109+
type: integer
9110+
description: Block height of the transaction containing the MIR
90439111
required:
90449112
- tx_hash
90459113
- amount
9114+
- tx_slot
9115+
- block_time
9116+
- block_height
90469117
example:
90479118
- tx_hash: 69705bba1d687a816ff5a04ec0c358a1f1ef075ab7f9c6cc2763e792581cec6d
90489119
amount: '2193707473'
9120+
tx_slot: 45093580
9121+
block_time: 1646437200
9122+
block_height: 6745358
90499123
- tx_hash: baaa77b63d4d7d2bb3ab02c9b85978c2092c336dede7f59e31ad65452d510c13
90509124
amount: '14520198574'
9125+
tx_slot: 48093580
9126+
block_time: 1649033600
9127+
block_height: 7126896
90519128
account_addresses_content:
90529129
type: array
90539130
items:

docs/blockfrost-openapi.yaml

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.85
3+
version: 0.1.86
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -8724,6 +8724,10 @@ components:
87248724
type: boolean
87258725
example: true
87268726
description: True if contract script passed validation
8727+
treasury_donation:
8728+
type: string
8729+
example: '0'
8730+
description: Treasury donation in Lovelaces
87278731
required:
87288732
- hash
87298733
- block
@@ -8747,6 +8751,7 @@ components:
87478751
- asset_mint_or_burn_count
87488752
- redeemer_count
87498753
- valid_contract
8754+
- treasury_donation
87508755
tx_content_utxo:
87518756
type: object
87528757
properties:
@@ -9454,20 +9459,40 @@ components:
94549459
pool_id:
94559460
type: string
94569461
description: Bech32 ID of pool being delegated to
9462+
tx_slot:
9463+
type: integer
9464+
description: Slot of the transaction containing the delegation
9465+
block_time:
9466+
type: integer
9467+
description: >-
9468+
Block creation time in UNIX time of the transaction containing the
9469+
delegation
9470+
block_height:
9471+
type: integer
9472+
description: Block height of the transaction containing the delegation
94579473
required:
94589474
- active_epoch
94599475
- tx_hash
94609476
- amount
94619477
- pool_id
9478+
- tx_slot
9479+
- block_time
9480+
- block_height
94629481
example:
94639482
- active_epoch: 210
94649483
tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
94659484
amount: '12695385'
94669485
pool_id: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
9486+
tx_slot: 45093580
9487+
block_time: 1646437200
9488+
block_height: 6745358
94679489
- active_epoch: 242
94689490
tx_hash: 1a0570af966fb355a7160e4f82d5a80b8681b7955f5d44bec0dde628516157f0
94699491
amount: '12691385'
94709492
pool_id: pool1kchver88u3kygsak8wgll7htr8uxn5v35lfrsyy842nkscrzyvj
9493+
tx_slot: 48093580
9494+
block_time: 1649033600
9495+
block_height: 7126896
94719496
account_registration_content:
94729497
type: array
94739498
items:
@@ -9484,14 +9509,38 @@ components:
94849509
- registered
94859510
- deregistered
94869511
description: Action in the certificate
9512+
tx_slot:
9513+
type: integer
9514+
description: >-
9515+
Slot of the transaction containing the (de)registration
9516+
certificate
9517+
block_time:
9518+
type: integer
9519+
description: >-
9520+
Block creation time in UNIX time of the transaction containing the
9521+
(de)registration certificate
9522+
block_height:
9523+
type: integer
9524+
description: >-
9525+
Block height of the transaction containing the (de)registration
9526+
certificate
94879527
required:
94889528
- tx_hash
94899529
- action
9530+
- tx_slot
9531+
- block_time
9532+
- block_height
94909533
example:
94919534
- tx_hash: 2dd15e0ef6e6a17841cb9541c27724072ce4d4b79b91e58432fbaa32d9572531
94929535
action: registered
9536+
tx_slot: 45093580
9537+
block_time: 1646437200
9538+
block_height: 6745358
94939539
- tx_hash: 1a0570af966fb355a7160e4f82d5a80b8681b7955f5d44bec0dde628516157f0
94949540
action: deregistered
9541+
tx_slot: 48093580
9542+
block_time: 1649033600
9543+
block_height: 7126896
94959544
account_withdrawal_content:
94969545
type: array
94979546
items:
@@ -9503,14 +9552,34 @@ components:
95039552
amount:
95049553
type: string
95059554
description: Withdrawal amount in Lovelaces
9555+
tx_slot:
9556+
type: integer
9557+
description: Slot of the transaction containing the withdrawal
9558+
block_time:
9559+
type: integer
9560+
description: >-
9561+
Block creation time in UNIX time of the transaction containing the
9562+
withdrawal
9563+
block_height:
9564+
type: integer
9565+
description: Block height of the transaction containing the withdrawal
95069566
required:
95079567
- tx_hash
95089568
- amount
9569+
- tx_slot
9570+
- block_time
9571+
- block_height
95099572
example:
95109573
- tx_hash: 48a9625c841eea0dd2bb6cf551eabe6523b7290c9ce34be74eedef2dd8f7ecc5
95119574
amount: '454541212442'
9575+
tx_slot: 45093580
9576+
block_time: 1646437200
9577+
block_height: 6745358
95129578
- tx_hash: 4230b0cbccf6f449f0847d8ad1d634a7a49df60d8c142bb8cc2dbc8ca03d9e34
95139579
amount: '97846969'
9580+
tx_slot: 48093580
9581+
block_time: 1649033600
9582+
block_height: 7126896
95149583
account_mir_content:
95159584
type: array
95169585
items:
@@ -9522,14 +9591,34 @@ components:
95229591
amount:
95239592
type: string
95249593
description: MIR amount in Lovelaces
9594+
tx_slot:
9595+
type: integer
9596+
description: Slot of the transaction containing the MIR
9597+
block_time:
9598+
type: integer
9599+
description: >-
9600+
Block creation time in UNIX time of the transaction containing the
9601+
MIR
9602+
block_height:
9603+
type: integer
9604+
description: Block height of the transaction containing the MIR
95259605
required:
95269606
- tx_hash
95279607
- amount
9608+
- tx_slot
9609+
- block_time
9610+
- block_height
95289611
example:
95299612
- tx_hash: 69705bba1d687a816ff5a04ec0c358a1f1ef075ab7f9c6cc2763e792581cec6d
95309613
amount: '2193707473'
9614+
tx_slot: 45093580
9615+
block_time: 1646437200
9616+
block_height: 6745358
95319617
- tx_hash: baaa77b63d4d7d2bb3ab02c9b85978c2092c336dede7f59e31ad65452d510c13
95329618
amount: '14520198574'
9619+
tx_slot: 48093580
9620+
block_time: 1649033600
9621+
block_height: 7126896
95339622
account_addresses_content:
95349623
type: array
95359624
items:

json-schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)