@@ -469,7 +469,10 @@ export interface paths {
469469 };
470470 /**
471471 * Get contract events
472- * @description Retrieves a list of events that have been triggered by a given `contract_id`
472+ * @deprecated
473+ * @description **NOTE:** This endpoint is deprecated in favor of `get_smart_contract_logs`.
474+ *
475+ * Retrieves a list of events that have been triggered by a given `contract_id`
473476 */
474477 get: operations["get_contract_events_by_id"];
475478 put?: never;
@@ -1225,6 +1228,26 @@ export interface paths {
12251228 patch?: never;
12261229 trace?: never;
12271230 };
1231+ "/extended/v2/blocks/at-time/{timestamp}": {
1232+ parameters: {
1233+ query?: never;
1234+ header?: never;
1235+ path?: never;
1236+ cookie?: never;
1237+ };
1238+ /**
1239+ * Get block at time
1240+ * @description Retrieves the most recent block mined at or before a given Unix timestamp (in seconds)
1241+ */
1242+ get: operations["get_block_at_time"];
1243+ put?: never;
1244+ post?: never;
1245+ delete?: never;
1246+ options?: never;
1247+ head?: never;
1248+ patch?: never;
1249+ trace?: never;
1250+ };
12281251 "/extended/v2/blocks/{height_or_hash}": {
12291252 parameters: {
12301253 query?: never;
@@ -1405,6 +1428,26 @@ export interface paths {
14051428 patch?: never;
14061429 trace?: never;
14071430 };
1431+ "/extended/v2/smart-contracts/{contract_id}/logs": {
1432+ parameters: {
1433+ query?: never;
1434+ header?: never;
1435+ path?: never;
1436+ cookie?: never;
1437+ };
1438+ /**
1439+ * Get smart contract logs
1440+ * @description Retrieves contract log events for a given smart contract.
1441+ */
1442+ get: operations["get_smart_contract_logs"];
1443+ put?: never;
1444+ post?: never;
1445+ delete?: never;
1446+ options?: never;
1447+ head?: never;
1448+ patch?: never;
1449+ trace?: never;
1450+ };
14081451 "/extended/v2/mempool/fees": {
14091452 parameters: {
14101453 query?: never;
@@ -27539,6 +27582,87 @@ export interface operations {
2753927582 };
2754027583 };
2754127584 };
27585+ get_block_at_time: {
27586+ parameters: {
27587+ query?: never;
27588+ header?: never;
27589+ path: {
27590+ /**
27591+ * @description Unix timestamp (in seconds)
27592+ * @example 1677731361
27593+ */
27594+ timestamp: number;
27595+ };
27596+ cookie?: never;
27597+ };
27598+ requestBody?: never;
27599+ responses: {
27600+ /** @description Default Response */
27601+ 200: {
27602+ headers: {
27603+ [name: string]: unknown;
27604+ };
27605+ content: {
27606+ "application/json": {
27607+ /** @description Set to `true` if block corresponds to the canonical chain tip */
27608+ canonical: boolean;
27609+ /** @description Height of the block */
27610+ height: number;
27611+ /** @description Hash representing the block */
27612+ hash: string;
27613+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
27614+ block_time: number;
27615+ /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) indicating when this block was mined. */
27616+ block_time_iso: string;
27617+ /** @description The tenure height (AKA coinbase height) of this block */
27618+ tenure_height: number;
27619+ /** @description The only hash that can uniquely identify an anchored block or an unconfirmed state trie */
27620+ index_block_hash: string;
27621+ /** @description Hash of the parent block */
27622+ parent_block_hash: string;
27623+ /** @description Index block hash of the parent block */
27624+ parent_index_block_hash: string;
27625+ /** @description Unix timestamp (in seconds) indicating when this block was mined. */
27626+ burn_block_time: number;
27627+ /** @description An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) indicating when this block was mined. */
27628+ burn_block_time_iso: string;
27629+ /** @description Hash of the anchor chain block */
27630+ burn_block_hash: string;
27631+ /** @description Height of the anchor chain block */
27632+ burn_block_height: number;
27633+ /** @description Anchor chain transaction ID */
27634+ miner_txid: string;
27635+ /** @description Number of transactions included in the block */
27636+ tx_count: number;
27637+ /** @description Execution cost read count. */
27638+ execution_cost_read_count: number;
27639+ /** @description Execution cost read length. */
27640+ execution_cost_read_length: number;
27641+ /** @description Execution cost runtime. */
27642+ execution_cost_runtime: number;
27643+ /** @description Execution cost write count. */
27644+ execution_cost_write_count: number;
27645+ /** @description Execution cost write length. */
27646+ execution_cost_write_length: number;
27647+ };
27648+ };
27649+ };
27650+ /** @description Default Response */
27651+ "4XX": {
27652+ headers: {
27653+ [name: string]: unknown;
27654+ };
27655+ content: {
27656+ "application/json": {
27657+ error: string;
27658+ message?: string;
27659+ } & {
27660+ [key: string]: unknown;
27661+ };
27662+ };
27663+ };
27664+ };
27665+ };
2754227666 get_block: {
2754327667 parameters: {
2754427668 query?: never;
@@ -29436,6 +29560,78 @@ export interface operations {
2943629560 };
2943729561 };
2943829562 };
29563+ get_smart_contract_logs: {
29564+ parameters: {
29565+ query?: {
29566+ /** @description Results per page */
29567+ limit?: number;
29568+ /** @description Result offset */
29569+ offset?: number;
29570+ /** @description Cursor for transaction event pagination (block_height:microblock_sequence:tx_index:event_index) */
29571+ cursor?: string;
29572+ };
29573+ header?: never;
29574+ path: {
29575+ /**
29576+ * @description Contract identifier formatted as `<contract_address>.<contract_name>`
29577+ * @example SP000000000000000000002Q6VF78.pox-3
29578+ */
29579+ contract_id: string;
29580+ };
29581+ cookie?: never;
29582+ };
29583+ requestBody?: never;
29584+ responses: {
29585+ /** @description Default Response */
29586+ 200: {
29587+ headers: {
29588+ [name: string]: unknown;
29589+ };
29590+ content: {
29591+ "application/json": {
29592+ /** @example 20 */
29593+ limit: number;
29594+ /** @example 0 */
29595+ offset: number;
29596+ /** @example 1 */
29597+ total: number;
29598+ next_cursor: string | null;
29599+ prev_cursor: string | null;
29600+ cursor: string | null;
29601+ results: ({
29602+ event_index: number;
29603+ } & {
29604+ /** @enum {string} */
29605+ event_type: "smart_contract_log";
29606+ tx_id: string;
29607+ contract_log: {
29608+ contract_id: string;
29609+ topic: string;
29610+ value: {
29611+ hex: string;
29612+ repr: string;
29613+ };
29614+ };
29615+ })[];
29616+ };
29617+ };
29618+ };
29619+ /** @description Default Response */
29620+ "4XX": {
29621+ headers: {
29622+ [name: string]: unknown;
29623+ };
29624+ content: {
29625+ "application/json": {
29626+ error: string;
29627+ message?: string;
29628+ } & {
29629+ [key: string]: unknown;
29630+ };
29631+ };
29632+ };
29633+ };
29634+ };
2943929635 get_mempool_fee_priorities: {
2944029636 parameters: {
2944129637 query?: never;
0 commit comments