Detailed cost breakdown
Base cost component
Bytes that will be charged
Bytes covered by free tier (genesis only)
Cost for file size
Optionalcost_Estimated cost in DEM as a decimal string (legacy/pre-fork shape). Kept for back-compat with current node responses.
Optionalcost_Estimated cost in OS as a decimal string (post-fork shape). Preferred when present.
File size used for calculation
Whether sender is a genesis account
Operation quoted for
Response from ipfsQuote nodeCall
Provides cost estimation before transaction is built and signed. Use this to populate
custom_chargesin the transaction.P4 dual-shape compatibility:
cost_dem(decimal string, DEM).cost_os(decimal string, OS).SDK helpers (
quoteToCustomCharges,createCustomCharges) prefercost_oswhen present and otherwise convertcost_demviadenomination.demToOs. Likewisebreakdown.{base_cost,size_cost}is shape-stable across the fork.