Nexus

algosdk TypeError: "Cannot read properties of undefined (reading 'firstValid')"

Short answer: You called a transaction builder without suggestedParams, so the SDK tried to read firstValid from undefined.

The exact message

Cannot read properties of undefined (reading 'firstValid')

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

Why it happens

The capture omitted suggestedParams and the SDK threw a plain TypeError, not a descriptive algosdk message.

How to fix it

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