Fee estimate
Send a serialized transaction and receive back a naive fee estimate. Note: partialFee
does not include any tips that you may add to increase a transaction's priority. See the reference on compute_fee
. Replaces /tx/fee-estimate
from versions < v1.0.0. Substrate Reference: - RuntimeDispatchInfo
: https://crates.parity.io/pallet_transaction_payment_rpc_runtime_api/struct.RuntimeDispatchInfo.html - query_info
: https://crates.parity.io/pallet_transaction_payment/struct.Module.html#method.query_info - compute_fee
: https://crates.parity.io/pallet_transaction_payment/struct.Module.html#method.compute_fee
Body
txstring · hexOptional
Responses
200
successful operation
application/json
400
fee estimation failure
application/json
post
POST /transaction/fee-estimate HTTP/1.1
Host: dot-playbook.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"tx": "text"
}
{
"weight": {
"refTime": "text",
"proofSize": "text"
},
"class": "Normal",
"partialFee": "text"
}