Nexus

How do I get the current Algorand network fee and latest round with algosdk?

Short answer: Call algod.getTransactionParams() for the fee fields and algod.status() for the latest round.

Code that was run

// 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 };
  }

What it returned

{
  "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.

Notes

All how-tos · howto.json · SDK errors · API errors · costs