Rivellum

Rivellum Portal

Download Wallet (Chrome)
Checking...
testnet

Fee Planning Reference

Deterministic fee planning for production call surfaces.

Fee Model

PropertyBehavior
Pricing basisbounded operation category
Congestion auctionnone
Drift/surge pricingnone
Determinismsame bounded call shape => same fee envelope

Fee Surfaces

SurfaceEndpoint / Command
Protocol quoteGET /v1/fee/quote
Contract estimatemistc fees <file.mist>
Runtime realized feereceipt (/v1/mist/receipts/:id)

Estimation Commands

mistc fees contracts/orderbook.mist
curl "https://rpc.rivellum.network/v1/fee/quote?kind=transfer"

Implementation Pattern

  1. Pre-check fee ceiling client side.
  2. Set max_fee at submit path.
  3. Persist realized receipt fees for analytics.
  4. Reject UI flows when envelope exceeds budget policy.

TypeScript Budget Guard

const quote = await fetch('https://rpc.rivellum.network/v1/fee/quote?kind=transfer').then(r => r.json());

if (quote.fee > userBudget.maxFeePerIntent) {
  throw new Error('fee envelope exceeds budget policy');
}

Production Controls

ControlTarget
max fee per intentcaller policy
max daily spendaccount/session policy
contract allowlistaccount auth policy
call-shape allowlistapp-level validation

Anti-Patterns

  • assuming p95/p99 fee movement under congestion
  • using latency metrics as fee proxies
  • omitting max_fee checks in submit path

Related References

  • /docs/dev/getting-started
  • /docs/dev/contract-lifecycle
  • /docs/dev/production-operations