Short answer: The bytes sent to the node are not a valid MessagePack-encoded signed transaction (the node could not decode them).
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"
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.
txn.signTxn(sk) (a Uint8Array), not a base64 or JSON string.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.