Nexus

algosdk "Not a Uint8Array" when setting a note

Short answer: The transaction note must be bytes (a Uint8Array), not a string.

The exact message

Not a Uint8Array: hello

Source: Error, captured locally with algosdk 3.9.0 on 2026-12-03.

Why it happens

The capture passed note: "hello" and got "Not a Uint8Array: hello". The message prints the value you passed.

How to fix it

Wording can change between SDK versions. All SDK errors · errors.json · node errors · x402 errors.