algosdk "Address must not be null or undefined"
Short answer: A required address (sender, receiver, rekeyTo and so on) was undefined or null when the transaction was built.
The exact message
Address must not be null or undefined
Source: Error, captured locally with algosdk 3.9.0 on 2026-12-03.
Why it happens
The capture passed receiver: undefined. This usually means a config value or environment variable was not set, or a property name was misspelled.
How to fix it
- Log each address argument just before the call and find the one that is undefined.
- Fail early at startup if a required address env var is empty.
Wording can change between SDK versions. All SDK errors · errors.json · node errors · x402 errors.