Nexus

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

Short answer: The bytes sent to the node are not a valid MessagePack-encoded signed transaction (the node could not decode them).

What the node printed

Pattern:

msgp: attempted to decode type "<type>" with method for "<type>"

Captured verbatim from a testnet node on 2026-12-03:

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

Why it happens

The capture sent four arbitrary bytes and got this MessagePack decoding error. In practice it appears when you post a base64 string, JSON, or an unsigned transaction where the node expects the raw bytes of a signed transaction.

How to fix it

const bytes = txn.signTxn(sk); // Uint8Array
await algod.sendRawTransaction(bytes).do();

Method: this message was produced on purpose against a live testnet node (https://testnet-api.algonode.cloud) on 2026-12-03. Message wording can change between node versions. All errors: index · errors.json.