Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Errors

txKit errors include a link to the relevant documentation page with details on the cause and how to fix it.

Error Classes

ErrorDescription
InvalidConfigErrorInvalid TxKitProvider configuration
ProviderNotFoundErrorTxKitProvider not found in component tree
MissingWagmiProviderErrorNo WagmiProvider found when using embedded mode
NestedProviderErrorStandalone TxKitProvider nested inside another

Base Class

All txKit errors extend TxKitError, which provides:

  • shortMessage - brief description of the error
  • docsPath - path to the documentation page
  • details - additional context (optional)
import { TxKitError } from '@txkit/core'
 
try {
  // ...
} catch (error) {
  if (error instanceof TxKitError) {
    console.log(error.shortMessage)
    console.log(error.docsPath)
  }
}