Nexus

algod 400: msgp: attempted to decode type "int" with method for "map"

Short answer: The body of the submit request is not a signed transaction in msgpack. A JSON body triggers this decoder error.

The exact message

msgp: attempted to decode type "int" with method for "map"

Source: POST /v2/transactions, HTTP 400, captured against a public TestNet node on 2026-12-03.

Why it happens

Captured by posting {"a":1} as JSON to /v2/transactions. The first byte of the JSON text was read as a msgpack integer where a map was expected.

How to fix it

Wording can change between node versions. All API errors · errors.json · transaction errors · SDK errors · costs