Dev.to
6/15/2026

Decoding error 1010 on Midnight: What "Invalid Transaction" actually means
Short summary
This guide decodes Midnight's error 1010 (Invalid Transaction) by mapping its JSON-RPC error structure to underlying causes via custom error codes in error.data. It explains five critical custom codes (139, 154, 168, 170, 186) and their root causes—block exhaustion, effect validation failures, fee mismatches. Includes version-specific mappings and step-by-step diagnostic steps for Midnight developers.
- •Error 1010 is a generic outer wrapper; the real diagnosis is in error.data custom codes
- •Maps five key custom codes to specific failures: block limits, effect mismatches, fee issues
- •Version-specific mappings with commit references for reproducibility and debugging
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



