Docs
Supported ChainsAsset HubSubstrate APIPayment Methods

payment_queryInfo - Asset Hub RPC Method

Estimate transaction fees on Asset Hub. Essential for fee calculation.

Estimates the fee for an extrinsic on Asset Hub.

Use Cases

  • Fee estimation - Calculate transaction costs before sending
  • UI display - Show fees to users for native stablecoin transfers (USDC, USDT), DOT staking and governance, and cross-chain asset management via XCM
  • Transaction planning - Ensure sufficient funds

Request Parameters

Request
extrinsicString

Hex-encoded unsigned extrinsic

blockHashString

Block hash for fee calculation

Response Body

Response
weightObject

Transaction weight

classString

Dispatch class

partialFeeString

Estimated fee

Code Examples

Bash
curl https://api-asset-hub-polkadot.n.dwellir.com/<YOUR_API_KEY>/YOUR_API_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "payment_queryInfo",
    "params": ["0x..."],
    "id": 1
  }'
JavaScript
import { ApiPromise, WsProvider } from '@polkadot/api';

const provider = new WsProvider('wss://api-asset-hub-polkadot.n.dwellir.com/YOUR_API_KEY');
const api = await ApiPromise.create({ provider });

// Create transfer (unsigned for estimation)
const transfer = api.tx.balances.transfer('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY', 1000000000000);

const info = await transfer.paymentInfo('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
console.log('Partial fee:', info.partialFee.toHuman());

await api.disconnect();

On this page