SolanaErrorCodeWithSimulationResult

type SolanaErrorCodeWithSimulationResult = 
  | typeof SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE
  | typeof SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT
  | typeof SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_RESOURCE_LIMITS;

Errors of this type are thrown when a transaction simulation fails. Their context holds the simulation result (eg. logs and unitsConsumed) and their cause holds the underlying transaction error, if any.

See

isSimulationError

On this page