Short answer: Call algod.getTransactionParams() for the fee fields and algod.status() for the latest round.
// algod = new algosdk.Algodv2("", "https://testnet-api.algonode.cloud", 443)
// indexer, addr (an account address) and USDC (asset id 10458941 on TestNet) are set up before the call
async () => {
const s = await algod.status().do();
const p = await algod.getTransactionParams().do();
return { lastRoundIsPositive: s.lastRound > 0n, minFee: String(p.minFee), flatFee: p.flatFee };
}
{
"lastRoundIsPositive": true,
"minFee": "1000",
"flatFee": false
}
Run against a public TestNet node with algosdk 3.9.0 on 2026-12-03. Amounts are shown as strings because they are bigints.
flatFee was false, which the SDK documents as "fee computed from the transaction size, never below the minimum" (documented behaviour, not separately tested here).All how-tos · howto.json · SDK errors · API errors · costs