BitcoinKernel KernelError Enumeration KernelError Errors from the Bitcoin kernel C API. enum KernelError Overview The kernel C API is deliberately minimal: btck_*_create functions return NULL on failure with no error code, no message, and no way to distinguish causes programmatically. KernelError preserves the only information the C API actually provides — which call failed — and invites callers to re-run under a LoggingConnection to see the underlying reason in kernel log output. Topics Enumeration Cases case blockCreationFailedbtck_block_create returned null — the input bytes did not decode as a valid Bitcoin block (wrong magic, truncated data, invalid varint, etc.). case blockHeaderCreationFailedbtck_block_header_create returned null — the input was not exactly 80 bytes of a valid serialized header. case chainstateManagerCreationFailedbtck_chainstate_manager_create returned null. case chainstateManagerOptionsCreationFailedbtck_chainstate_manager_options_create returned null. case contextCreationFailedbtck_context_create returned null. case loggingConnectionFailedbtck_logging_connection_create returned null. case precomputedDataCreationFailedbtck_precomputed_transaction_data_create returned null, typically because the spent-outputs argument did not match the transaction’s input count or a witness requirement. case transactionCreationFailedbtck_transaction_create returned null — the input bytes did not decode as a valid Bitcoin transaction. Instance Properties var description: String var errorDescription: String?