⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

payment_queryInfo

Description

Returns fee and weight information for a signed extrinsic without submitting it. Use this to pre‑calculate costs and set safe fee buffers before calling author_submitExtrinsic.

Parameters

PositionTypeDescription
0stringSigned extrinsic hex
1 (optional)stringBlock hash to evaluate against

Response Fields

FieldTypeDescription
weight.ref_timenumberEstimated execution weight (time)
weight.proof_sizenumberEstimated proof size
classstringnormal, operational, or mandatory
partialFeestringEstimated partial fee in plancks

Example (HTTP)

curl -s https://api-acala.n.dwellir.com/YOUR_API_KEY \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":99,"method":"payment_queryInfo","params":["0xSIGNED_EXTRINSIC_HEX"]}'

Code Examples

// Create a tx, sign offline or via keyring, then:
const info = await api.rpc.payment.queryInfo(signedTx.toHex());
console.log(info.toHuman());