Closed
Description
Context from #1295
The Rosetta construction code still uses the legacy fee calculation method of essentially fee = someConstant * tx.byteLength
. There's a new-ish RPC endpoint /v2/fees/transaction
which can return more accurate fees based on network conditions.
Keep in mind the new fee estimator endpoint can return an error NoEstimateAvailable
, in which case the Rosetta code should fallback to the previous estimation logic.
Relevant code at:
stacks-blockchain-api/src/api/routes/rosetta/construction.ts
Lines 408 to 429 in 9593112
Metadata
Metadata
Assignees
Type
Projects
Status