From 1b10146b708802062dc1807644772f9e6baed91d Mon Sep 17 00:00:00 2001 From: Ryan Mottley Date: Fri, 21 Nov 2025 13:53:09 -0600 Subject: [PATCH] feat(api): include index_block_hash and tenure_height in tx responses * chore: tests --- client/src/generated/schema.d.ts | 346 ++++++++++++++++++++++- src/api/controllers/db-controller.ts | 2 + src/api/schemas/entities/transactions.ts | 9 + src/datastore/common.ts | 3 + src/datastore/helpers.ts | 6 + src/datastore/pg-store.ts | 15 +- tests/api/address.test.ts | 30 ++ tests/api/search.test.ts | 4 + tests/api/tx.test.ts | 22 ++ tests/api/websocket.test.ts | 6 + 10 files changed, 434 insertions(+), 9 deletions(-) diff --git a/client/src/generated/schema.d.ts b/client/src/generated/schema.d.ts index e110639842..41f143b869 100644 --- a/client/src/generated/schema.d.ts +++ b/client/src/generated/schema.d.ts @@ -1945,6 +1945,8 @@ export interface operations { * @example 123 */ nonce?: number; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path?: never; @@ -2063,12 +2065,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -2278,12 +2283,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -2493,12 +2501,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -2715,12 +2726,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -2929,12 +2943,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -3143,12 +3160,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -3302,6 +3322,8 @@ export interface operations { * @example true */ unanchored?: boolean; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path?: never; @@ -3417,12 +3439,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -3632,12 +3657,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -3847,12 +3875,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -4069,12 +4100,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -4283,12 +4317,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -4497,12 +4534,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -4709,6 +4749,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -4808,6 +4849,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -4907,6 +4949,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5013,6 +5056,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5111,6 +5155,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5209,6 +5254,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5289,6 +5335,8 @@ export interface operations { offset?: number; /** @description Results per page */ limit?: number; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path?: never; @@ -5395,6 +5443,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5494,6 +5543,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5593,6 +5643,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5699,6 +5750,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5797,6 +5849,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -5895,6 +5948,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -6140,6 +6194,8 @@ export interface operations { * @example true */ unanchored?: boolean; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path: { @@ -6257,12 +6313,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -6472,12 +6531,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -6687,12 +6749,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -6909,12 +6974,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -7123,12 +7191,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -7337,12 +7408,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -7549,6 +7623,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -7648,6 +7723,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -7747,6 +7823,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -7853,6 +7930,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -7951,6 +8029,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -8049,6 +8128,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -8144,6 +8224,8 @@ export interface operations { offset?: number; /** @description Results per page */ limit?: number; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path: { @@ -8264,12 +8346,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -8479,12 +8564,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -8694,12 +8782,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -8916,12 +9007,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -9130,12 +9224,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -9344,12 +9441,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -9497,6 +9597,8 @@ export interface operations { offset?: number; /** @description Results per page */ limit?: number; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path: { @@ -9621,12 +9723,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -9836,12 +9941,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -10051,12 +10159,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -10273,12 +10384,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -10487,12 +10601,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -10701,12 +10818,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -11266,12 +11386,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -11481,12 +11604,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -11696,12 +11822,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -11918,12 +12047,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -12132,12 +12264,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -12346,12 +12481,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -12646,12 +12784,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -12861,12 +13002,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -13076,12 +13220,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -13298,12 +13445,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -13512,12 +13662,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -13726,12 +13879,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -14031,12 +14187,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -14246,12 +14405,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -14461,12 +14623,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -14683,12 +14848,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -14897,12 +15065,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -15111,12 +15282,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -15845,12 +16019,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -16060,12 +16237,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -16275,12 +16455,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -16497,12 +16680,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -16711,12 +16897,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -16925,12 +17114,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -18018,6 +18210,8 @@ export interface operations { unanchored?: boolean; /** @description Block hash or block height. Return data representing the state up until that point in time, rather than the current block. Note - Use either of the query parameters but not both at a time. */ until_block?: string; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path: { @@ -18138,12 +18332,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -18353,12 +18550,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -18568,12 +18768,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -18790,12 +18993,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -19004,12 +19210,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -19218,12 +19427,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -19485,12 +19697,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -19700,12 +19915,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -19915,12 +20133,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -20137,12 +20358,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -20351,12 +20575,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -20565,12 +20792,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -20883,12 +21113,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -21098,12 +21331,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -21313,12 +21549,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -21535,12 +21774,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -21749,12 +21991,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -21963,12 +22208,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -22353,6 +22601,8 @@ export interface operations { * @example true */ unanchored?: boolean; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path: { @@ -22461,6 +22711,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -22560,6 +22811,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -22659,6 +22911,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -22765,6 +23018,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -22863,6 +23117,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -22961,6 +23216,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -23313,12 +23569,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -23528,12 +23787,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -23743,12 +24005,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -23965,12 +24230,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -24179,12 +24447,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -24393,12 +24664,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -24605,6 +24879,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -24704,6 +24979,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -24803,6 +25079,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -24909,6 +25186,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25007,6 +25285,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25105,6 +25384,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25222,6 +25502,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25321,6 +25602,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25420,6 +25702,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25526,6 +25809,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25624,6 +25908,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25722,6 +26007,7 @@ export interface operations { anchor_mode: "on_chain_only" | "off_chain_only" | "any"; /** @description Status of the transaction */ tx_status: "pending" | "dropped_replace_by_fee" | "dropped_replace_across_fork" | "dropped_too_expensive" | "dropped_stale_garbage_collect" | "dropped_problematic"; + replaced_by_tx_id: string | null; /** @description A unix timestamp (in seconds) indicating when the transaction broadcast was received by the node. */ receipt_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when the transaction broadcast was received by the node. */ @@ -25855,12 +26141,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -26070,12 +26359,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -26285,12 +26577,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -26507,12 +26802,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -26721,12 +27019,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -26935,12 +27236,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -27347,7 +27651,7 @@ export interface operations { limit?: number; /** @description Result offset */ offset?: number; - /** @description Cursor for pagination */ + /** @description Cursor for block pagination */ cursor?: string; }; header?: never; @@ -27680,12 +27984,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -27895,12 +28202,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -28110,12 +28420,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -28332,12 +28645,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -28546,12 +28862,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -28760,12 +29079,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -29165,7 +29487,7 @@ export interface operations { limit?: number; /** @description Result offset */ offset?: number; - /** @description Cursor for pagination */ + /** @description Cursor for block pagination */ cursor?: string; }; header?: never; @@ -29651,6 +29973,8 @@ export interface operations { limit?: number; /** @description Result offset */ offset?: number; + /** @description Exclude function_args from contract call responses for smaller transaction sizes. */ + exclude_function_args?: boolean; }; header?: never; path: { @@ -29772,12 +30096,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -29987,12 +30314,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -30202,12 +30532,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -30424,12 +30757,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -30638,12 +30974,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ @@ -30852,12 +31191,15 @@ export interface operations { burn_block_height: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined. */ burn_block_time_iso: string; + /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */ + index_block_hash: string; /** @description Unix timestamp (in seconds) indicating when this parent block was mined */ parent_burn_block_time: number; /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this parent block was mined. */ parent_burn_block_time_iso: string; /** @description Set to `true` if block corresponds to the canonical chain tip */ canonical: boolean; + tenure_height: number | null; /** @description Index of the transaction, indicating the order. Starts at `0` and increases with each transaction */ tx_index: number; /** @description Status of the transaction */ diff --git a/src/api/controllers/db-controller.ts b/src/api/controllers/db-controller.ts index 9c0ac09056..832077bfca 100644 --- a/src/api/controllers/db-controller.ts +++ b/src/api/controllers/db-controller.ts @@ -1125,6 +1125,7 @@ function parseDbAbstractTx(dbTx: DbTx, baseTx: BaseTransaction): AbstractTransac ...baseTx, is_unanchored: dbTx.block_hash === '0x', block_hash: dbTx.block_hash, + index_block_hash: dbTx.index_block_hash, parent_block_hash: dbTx.parent_block_hash, block_height: dbTx.block_height, block_time: dbTx.block_time || dbTx.burn_block_time, @@ -1140,6 +1141,7 @@ function parseDbAbstractTx(dbTx: DbTx, baseTx: BaseTransaction): AbstractTransac parent_burn_block_time_iso: dbTx.parent_burn_block_time > 0 ? unixEpochToIso(dbTx.parent_burn_block_time) : '', canonical: dbTx.canonical, + tenure_height: dbTx.tenure_height || dbTx.block_height, tx_index: dbTx.tx_index, tx_status: getTxStatusString(dbTx.status) as TransactionStatus, tx_result: { diff --git a/src/api/schemas/entities/transactions.ts b/src/api/schemas/entities/transactions.ts index 2491e82c7c..c5b7482a09 100644 --- a/src/api/schemas/entities/transactions.ts +++ b/src/api/schemas/entities/transactions.ts @@ -74,6 +74,10 @@ const AbstractTransactionProperties = { description: 'An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) timestamp indicating when this block was mined.', }), + index_block_hash: Type.String({ + description: + 'The only hash that can uniquely identify an anchored block or an unconfirmed state trie', + }), parent_burn_block_time: Type.Integer({ description: 'Unix timestamp (in seconds) indicating when this parent block was mined', }), @@ -84,6 +88,11 @@ const AbstractTransactionProperties = { canonical: Type.Boolean({ description: 'Set to `true` if block corresponds to the canonical chain tip', }), + tenure_height: Nullable( + Type.Integer({ + description: 'The tenure height (AKA coinbase height) of this block', + }) + ), tx_index: Type.Integer({ description: 'Index of the transaction, indicating the order. Starts at `0` and increases with each transaction', diff --git a/src/datastore/common.ts b/src/datastore/common.ts index 52b7265421..7948263be9 100644 --- a/src/datastore/common.ts +++ b/src/datastore/common.ts @@ -192,6 +192,8 @@ export interface DbTx extends BaseTx { tx_index: number; + tenure_height?: number | null; + /** Hex encoded Clarity values. */ raw_result: string; @@ -973,6 +975,7 @@ export interface TxQueryResult { status: number; raw_result: string; canonical: boolean; + tenure_height?: number | null; microblock_canonical: boolean; microblock_sequence: number; diff --git a/src/datastore/helpers.ts b/src/datastore/helpers.ts index fa649218a7..b72135fbcf 100644 --- a/src/datastore/helpers.ts +++ b/src/datastore/helpers.ts @@ -294,6 +294,12 @@ export function abiColumn(sql: PgSqlClient, tableName: string = 'txs'): postgres `; } +export function tenureHeightColumn(sql: PgSqlClient): postgres.Fragment { + return sql` + SELECT tenure_height FROM blocks WHERE index_block_hash = txs.index_block_hash + `; +} + export function parseMempoolTxQueryResult(result: MempoolTxQueryResult): DbMempoolTx { const tx: DbMempoolTx = { pruned: result.pruned, diff --git a/src/datastore/pg-store.ts b/src/datastore/pg-store.ts index c192378686..51b371f059 100644 --- a/src/datastore/pg-store.ts +++ b/src/datastore/pg-store.ts @@ -82,6 +82,7 @@ import { POX4_SYNTHETIC_EVENT_COLUMNS, POX_SYNTHETIC_EVENT_COLUMNS, prefixedCols, + tenureHeightColumn, TX_COLUMNS, validateZonefileHash, } from './helpers'; @@ -818,7 +819,7 @@ export class PgStore extends BasePgStore { AND index_block_hash = ${blockQuery.result.index_block_hash} `; const result = await sql` - SELECT ${sql(TX_COLUMNS)}, ${abiColumn(sql)} + SELECT ${sql(TX_COLUMNS)}, ${abiColumn(sql)}, (${tenureHeightColumn(sql)}) AS tenure_height FROM txs WHERE canonical = true AND microblock_canonical = true AND index_block_hash = ${blockQuery.result.index_block_hash} @@ -1379,7 +1380,7 @@ export class PgStore extends BasePgStore { return await this.sqlTransaction(async sql => { const maxBlockHeight = await this.getMaxBlockHeight(sql, { includeUnanchored }); const result = await sql` - SELECT ${sql(TX_COLUMNS)}, ${abiColumn(sql)} + SELECT ${sql(TX_COLUMNS)}, ${abiColumn(sql)}, (${tenureHeightColumn(sql)}) AS tenure_height FROM txs WHERE tx_id = ${txId} AND block_height <= ${maxBlockHeight} ORDER BY canonical DESC, microblock_canonical DESC, block_height DESC @@ -3334,15 +3335,15 @@ export class PgStore extends BasePgStore { { address: string; balance: string; count: number; total_supply: string }[] >` WITH totals AS ( - SELECT + SELECT SUM(balance) AS total, COUNT(*)::int AS total_count FROM ft_balances WHERE token = ${args.token} ) - SELECT - fb.address, - fb.balance, + SELECT + fb.address, + fb.balance, ts.total AS total_supply, ts.total_count AS count FROM ft_balances fb @@ -3573,7 +3574,7 @@ export class PgStore extends BasePgStore { return await this.sqlTransaction(async sql => { const maxBlockHeight = await this.getMaxBlockHeight(sql, { includeUnanchored }); const result = await sql` - SELECT ${sql(TX_COLUMNS)}, ${abiColumn(sql)} + SELECT ${sql(TX_COLUMNS)}, ${abiColumn(sql)}, (${tenureHeightColumn(sql)}) AS tenure_height FROM txs WHERE tx_id IN ${sql(txIds)} AND block_height <= ${maxBlockHeight} diff --git a/tests/api/address.test.ts b/tests/api/address.test.ts index 745018bec4..c5ee21eae5 100644 --- a/tests/api/address.test.ts +++ b/tests/api/address.test.ts @@ -273,7 +273,9 @@ describe('address tests', () => { post_conditions: [], tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 1594647994, block_time_iso: '2020-07-13T13:46:34.000Z', burn_block_height: 100123123, @@ -364,7 +366,9 @@ describe('address tests', () => { post_conditions: [], tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 1594647994, block_time_iso: '2020-07-13T13:46:34.000Z', burn_block_height: 100123123, @@ -429,7 +433,9 @@ describe('address tests', () => { post_conditions: [], tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 1594647994, block_time_iso: '2020-07-13T13:46:34.000Z', burn_block_height: 100123123, @@ -768,7 +774,9 @@ describe('address tests', () => { post_conditions: [], tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 1594647994, block_time_iso: '2020-07-13T13:46:34.000Z', burn_block_height: 100123123, @@ -844,7 +852,9 @@ describe('address tests', () => { post_conditions: [], tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 1594647994, block_time_iso: '2020-07-13T13:46:34.000Z', burn_block_height: 100123123, @@ -935,7 +945,9 @@ describe('address tests', () => { post_conditions: [], tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 1594647994, block_time_iso: '2020-07-13T13:46:34.000Z', burn_block_height: 100123123, @@ -1915,7 +1927,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', burn_block_height: 100123123, @@ -1975,7 +1989,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', burn_block_height: 100123123, @@ -2019,7 +2035,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', burn_block_height: 100123123, @@ -2064,7 +2082,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', burn_block_height: 100123123, @@ -2109,7 +2129,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, burn_block_height: 100123123, block_time_iso: '1970-01-01T10:58:06.000Z', @@ -2169,7 +2191,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, burn_block_height: 100123123, block_time_iso: '1970-01-01T10:58:06.000Z', @@ -2241,9 +2265,11 @@ describe('address tests', () => { tx: { anchor_mode: 'any', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', + tenure_height: 1, burn_block_height: 100123123, burn_block_time: 39486, burn_block_time_iso: '1970-01-01T10:58:06.000Z', @@ -2322,7 +2348,9 @@ describe('address tests', () => { tx: { anchor_mode: 'any', block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', burn_block_height: 100123123, @@ -2401,7 +2429,9 @@ describe('address tests', () => { post_condition_mode: 'allow', post_conditions: [], block_hash: '0x1234', + index_block_hash: '0x1234', block_height: 1, + tenure_height: 1, block_time: 39486, block_time_iso: '1970-01-01T10:58:06.000Z', burn_block_height: 100123123, diff --git a/tests/api/search.test.ts b/tests/api/search.test.ts index ab4ad16073..81ad9eefae 100644 --- a/tests/api/search.test.ts +++ b/tests/api/search.test.ts @@ -555,6 +555,7 @@ describe('search tests', () => { anchor_mode: 'any', is_unanchored: false, block_hash: '0x1234000000000000000000000000000000000000000000000000000000000000', + index_block_hash: '0xdeadbeef', parent_block_hash: '0x', block_height: 1, block_time: 2837565, @@ -565,6 +566,7 @@ describe('search tests', () => { parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', canonical: true, + tenure_height: 1, tx_index: 4, tx_status: 'success', tx_result: { @@ -1568,6 +1570,7 @@ describe('search tests', () => { execution_cost_write_count: 0, execution_cost_write_length: 0, fee_rate: '1234', + index_block_hash: '0x1234', is_unanchored: false, microblock_canonical: true, microblock_hash: '0x', @@ -1585,6 +1588,7 @@ describe('search tests', () => { source_code: '(some-src)', }, sponsored: false, + tenure_height: 1, tx_id: '0x1111880000000000000000000000000000000000000000000000000000000000', tx_index: 0, tx_result: { diff --git a/tests/api/tx.test.ts b/tests/api/tx.test.ts index e66bec0707..d1f7fb3b7d 100644 --- a/tests/api/tx.test.ts +++ b/tests/api/tx.test.ts @@ -469,12 +469,14 @@ describe('tx tests', () => { burn_block_time: 1594647995, burn_block_time_iso: '2020-07-13T13:46:35.000Z', canonical: true, + index_block_hash: '0x1234', microblock_canonical: true, microblock_hash: '0x', microblock_sequence: I32_MAX, parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + tenure_height: 1, tx_id: '0x0c80debd01f7ca45e6126d9da7fd54f61d43a9e7cb41d975b30e17ab423f22e4', tx_index: 2, tx_status: 'success', @@ -625,12 +627,14 @@ describe('tx tests', () => { burn_block_time: 1594647995, burn_block_time_iso: '2020-07-13T13:46:35.000Z', canonical: true, + index_block_hash: '0x1234', microblock_canonical: true, microblock_hash: '0x', microblock_sequence: I32_MAX, parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + tenure_height: 1, tx_id: '0x449f5ea5c541bbbbbf7a1bff2434c449dca2ae3cdc52ba8d24b0bd0d3632d9bc', tx_index: 2, tx_status: 'success', @@ -780,12 +784,14 @@ describe('tx tests', () => { burn_block_time: 1594647995, burn_block_time_iso: '2020-07-13T13:46:35.000Z', canonical: true, + index_block_hash: '0x1234', microblock_canonical: true, microblock_hash: '0x', microblock_sequence: I32_MAX, parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + tenure_height: 1, tx_id: '0xbd1a9e1d60ca29fc630633170f396f5b6b85c9620bd16d63384ebc5a01a1829b', tx_index: 2, tx_status: 'success', @@ -969,12 +975,14 @@ describe('tx tests', () => { burn_block_time: 1594647995, burn_block_time_iso: '2020-07-13T13:46:35.000Z', canonical: true, + index_block_hash: '0x1234', microblock_canonical: true, microblock_hash: '0x', microblock_sequence: I32_MAX, parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + tenure_height: 1, tx_id: '0xc889d593d349834e100f63cf58975b6aa2787d6f3784a26f5654221e38f75b05', tx_index: 2, tx_status: 'success', @@ -1608,12 +1616,14 @@ describe('tx tests', () => { burn_block_time: 1594647995, burn_block_time_iso: '2020-07-13T13:46:35.000Z', canonical: true, + index_block_hash: '0x1234', microblock_canonical: true, microblock_hash: '0x', microblock_sequence: I32_MAX, parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + tenure_height: 1, tx_id: '0xc3e2fabaf7017fa2f6967db4f21be4540fdeae2d593af809c18a6adf369bfb03', tx_index: 2, tx_status: 'success', @@ -1825,12 +1835,14 @@ describe('tx tests', () => { burn_block_time: 1594647995, burn_block_time_iso: '2020-07-13T13:46:35.000Z', canonical: true, + index_block_hash: '0x1234', microblock_canonical: true, microblock_hash: '0x', microblock_sequence: I32_MAX, parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + tenure_height: 1, tx_id: '0x068e0faed65a1fcddfba0dc5d8dbb685128c7f25e735bbf0fe57e58e8bbb8b75', tx_index: 2, tx_status: 'abort_by_response', @@ -1992,7 +2004,9 @@ describe('tx tests', () => { parent_block_hash: '0x5678', parent_burn_block_time: 1626122935, parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', + index_block_hash: '0x1234', canonical: true, + tenure_height: 1, tx_id: '0x068e0faed65a1fcddfba0dc5d8dbb685128c7f25e735bbf0fe57e58e8bbb8b75', tx_index: 2, tx_status: 'abort_by_post_condition', @@ -3643,7 +3657,9 @@ describe('tx tests', () => { parent_burn_block_time_iso: '2021-07-12T20:48:55.000Z', tx_status: 'success', block_hash: '0x1234', + index_block_hash: '0xdeadbeef', block_height: 1, + tenure_height: 1, block_time: 1594647995, block_time_iso: '2020-07-13T13:46:35.000Z', burn_block_height: 123, @@ -3827,10 +3843,12 @@ describe('tx tests', () => { anchor_mode: 'any', is_unanchored: false, block_hash: '0xd10ccecfd7ac9e5f8a10de0532fac028559b31a6ff494d82147f6297fb663139', + index_block_hash: '0xd10ccecfd7ac9e5f8a10de0532fac028559b31a6ff494d82147f6297fb663139', block_time: 1637003433, block_time_iso: '2021-11-15T19:10:33.000Z', parent_block_hash: '0x', block_height: 1, + tenure_height: 1, burn_block_height: 1, burn_block_time: 1637003433, burn_block_time_iso: '2021-11-15T19:10:33.000Z', @@ -3939,6 +3957,8 @@ describe('tx tests', () => { parent_burn_block_time: 1637002470, parent_burn_block_time_iso: '2021-11-15T18:54:30.000Z', canonical: true, + index_block_hash: '0xd10ccecfd7ac9e5f8a10de0532fac028559b31a6ff494d82147f6297fb663139', + tenure_height: 1, tx_index: 33, tx_status: 'success', tx_result: { hex: '0x0100000000000000000000000000000001', repr: 'u1' }, @@ -4321,6 +4341,8 @@ describe('tx tests', () => { post_conditions: [], sender_address: 'sender-addr', sponsored: false, + index_block_hash: '0xdeadbeef', + tenure_height: 1, tx_id: '0x1234', tx_index: 0, tx_result: { diff --git a/tests/api/websocket.test.ts b/tests/api/websocket.test.ts index 780f0f8163..bca99f9b64 100644 --- a/tests/api/websocket.test.ts +++ b/tests/api/websocket.test.ts @@ -293,9 +293,11 @@ describe('websocket notifications', () => { tx: { anchor_mode: 'any', block_hash: '0x01', + index_block_hash: '0x01', block_height: 1, block_time: 94869287, block_time_iso: '1973-01-03T00:34:47.000Z', + tenure_height: 1, burn_block_height: 1, burn_block_time: 94869286, burn_block_time_iso: '1973-01-03T00:34:46.000Z', @@ -370,9 +372,11 @@ describe('websocket notifications', () => { tx: { anchor_mode: 'any', block_hash: '0x123456', + index_block_hash: '0x', block_height: 2, block_time: 94869287, block_time_iso: '1973-01-03T00:34:47.000Z', + tenure_height: 2, burn_block_height: 1, burn_block_time: 94869286, burn_block_time_iso: '1973-01-03T00:34:46.000Z', @@ -698,9 +702,11 @@ describe('websocket notifications', () => { tx: { anchor_mode: 'any', block_hash: '0x123456', + index_block_hash: '0xdeadbeef', block_height: 1, block_time: 94869287, block_time_iso: '1973-01-03T00:34:47.000Z', + tenure_height: 1, burn_block_height: 1, burn_block_time: 94869286, burn_block_time_iso: '1973-01-03T00:34:46.000Z',