Skip to main content

payment_queryFeeDetails

Returns a detailed breakdown of fees for a given extrinsic on Manta Atlantic. Unlike payment_queryInfo which returns the total fee, this method separates the fee into its component parts.

Use Cases#

  • Fee analysis - Understand fee composition for private asset transfers, zkNFTs, on-chain compliance identities, and private parachain asset swaps
  • Optimization - Identify which fee component dominates costs
  • Debugging - Diagnose unexpected fee amounts

Parameters#

ParameterTypeRequiredDescription
extrinsicBytesYesSCALE-encoded extrinsic (signed or unsigned)
blockHashHashNoBlock hash for fee calculation context

Returns#

FieldTypeDescription
inclusionFeeOption<InclusionFee>Fee details (null for unsigned extrinsics)

InclusionFee Structure#

FieldTypeDescription
baseFeeBalanceFixed base fee per extrinsic
lenFeeBalanceFee based on encoded extrinsic length
adjustedWeightFeeBalanceFee based on execution weight

Code Examples#

curl https://api-manta-atlantic-mainnet.n.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "payment_queryFeeDetails",
"params": ["0x...encodedExtrinsic"],
"id": 1
}'

Fee Components Explained#

ComponentCalculationOptimization
Base feeFixed per extrinsicBatch calls to share base fee
Length feelength * lengthToFeeMinimize call data size
Weight feeweight * weightToFeeChoose efficient operations