Short answer: You called a transaction builder without suggestedParams, so the SDK tried to read firstValid from undefined.
Cannot read properties of undefined (reading 'firstValid')
Source: TypeError, captured locally with algosdk 3.9.0 on 2026-12-03.
The capture omitted suggestedParams and the SDK threw a plain TypeError, not a descriptive algosdk message.
const suggestedParams = await algod.getTransactionParams().do();.Wording can change between SDK versions. All SDK errors · errors.json · node errors · x402 errors.