Home

Query transaction fee information

POST
https://moonbeam.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Retrieve the transaction fee information for an extrinsic.

The payment_queryInfo method estimates the transaction fees (including weight fees, length fees, and tips) for a given extrinsic without actually submitting it to the chain. This allows applications to display accurate fee estimates to users before they sign and submit transactions.

This method is essential for:

  • Wallet applications showing fee estimates
  • DApps calculating transaction costs
  • Users verifying transaction affordability
  • Batch transaction cost optimization

Body

application/json
jsonrpcstring2.0required

JSON-RPC version identifier

methodstringpayment_queryInforequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<string>required

Array containing the hex-encoded extrinsic

Response

200OK

Fee information retrieved successfully

400Bad Request

Invalid extrinsic or request

500Internal Server Error

Internal server error