UNPKG

ordapi

Version:
210 lines (209 loc) 5.89 kB
import { z } from 'zod'; export declare const BlockHashSchema: z.ZodEffects<z.ZodString, string, string>; export declare const BlockInfoSchema: z.ZodObject<{ best_height: z.ZodNumber; hash: z.ZodEffects<z.ZodString, string, string>; height: z.ZodNumber; inscriptions: z.ZodArray<z.ZodString, "many">; runes: z.ZodArray<z.ZodString, "many">; target: z.ZodString; transactions: z.ZodArray<z.ZodObject<{ version: z.ZodNumber; lock_time: z.ZodNumber; input: z.ZodArray<z.ZodObject<{ previous_output: z.ZodString; script_sig: z.ZodString; sequence: z.ZodNumber; witness: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { previous_output: string; script_sig: string; sequence: number; witness: string[]; }, { previous_output: string; script_sig: string; sequence: number; witness: string[]; }>, "many">; output: z.ZodArray<z.ZodObject<{ value: z.ZodNumber; script_pubkey: z.ZodString; }, "strip", z.ZodTypeAny, { value: number; script_pubkey: string; }, { value: number; script_pubkey: string; }>, "many">; }, "strip", z.ZodTypeAny, { version: number; lock_time: number; input: { previous_output: string; script_sig: string; sequence: number; witness: string[]; }[]; output: { value: number; script_pubkey: string; }[]; }, { version: number; lock_time: number; input: { previous_output: string; script_sig: string; sequence: number; witness: string[]; }[]; output: { value: number; script_pubkey: string; }[]; }>, "many">; }, "strip", z.ZodTypeAny, { best_height: number; hash: string; height: number; inscriptions: string[]; runes: string[]; target: string; transactions: { version: number; lock_time: number; input: { previous_output: string; script_sig: string; sequence: number; witness: string[]; }[]; output: { value: number; script_pubkey: string; }[]; }[]; }, { best_height: number; hash: string; height: number; inscriptions: string[]; runes: string[]; target: string; transactions: { version: number; lock_time: number; input: { previous_output: string; script_sig: string; sequence: number; witness: string[]; }[]; output: { value: number; script_pubkey: string; }[]; }[]; }>; export declare const BlocksResponseSchema: z.ZodObject<{ last: z.ZodNumber; blocks: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">; featured_blocks: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { last: number; blocks: string[]; featured_blocks: Record<string, string[]>; }, { last: number; blocks: string[]; featured_blocks: Record<string, string[]>; }>; export declare const BlockDetailsSchema: z.ZodObject<{ average_fee: z.ZodNumber; average_fee_rate: z.ZodNumber; bits: z.ZodNumber; chainwork: z.ZodString; confirmations: z.ZodNumber; difficulty: z.ZodNumber; hash: z.ZodEffects<z.ZodString, string, string>; feerate_percentiles: z.ZodArray<z.ZodNumber, "many">; height: z.ZodNumber; max_fee: z.ZodNumber; max_fee_rate: z.ZodNumber; max_tx_size: z.ZodNumber; median_fee: z.ZodNumber; median_time: z.ZodNullable<z.ZodNumber>; merkle_root: z.ZodString; min_fee: z.ZodNumber; min_fee_rate: z.ZodNumber; next_block: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>; nonce: z.ZodNumber; previous_block: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>; subsidy: z.ZodNumber; target: z.ZodString; timestamp: z.ZodNumber; total_fee: z.ZodNumber; total_size: z.ZodNumber; total_weight: z.ZodNumber; transaction_count: z.ZodNumber; version: z.ZodNumber; }, "strip", z.ZodTypeAny, { version: number; hash: string; height: number; target: string; average_fee: number; average_fee_rate: number; bits: number; chainwork: string; confirmations: number; difficulty: number; feerate_percentiles: number[]; max_fee: number; max_fee_rate: number; max_tx_size: number; median_fee: number; median_time: number | null; merkle_root: string; min_fee: number; min_fee_rate: number; next_block: string | null; nonce: number; previous_block: string | null; subsidy: number; timestamp: number; total_fee: number; total_size: number; total_weight: number; transaction_count: number; }, { version: number; hash: string; height: number; target: string; average_fee: number; average_fee_rate: number; bits: number; chainwork: string; confirmations: number; difficulty: number; feerate_percentiles: number[]; max_fee: number; max_fee_rate: number; max_tx_size: number; median_fee: number; median_time: number | null; merkle_root: string; min_fee: number; min_fee_rate: number; next_block: string | null; nonce: number; previous_block: string | null; subsidy: number; timestamp: number; total_fee: number; total_size: number; total_weight: number; transaction_count: number; }>;