Skip to main content

/transaction/fee-estimate REST API Endpoint

Loading...

Updated on
Sep 02, 2024

/transaction/fee-estimate REST API Endpoint

Body Parameters

tx
string
REQUIRED
Loading...

Returns

weight
object
Loading...
refTime
string
Loading...
proofSize
string
Loading...
class
string
Loading...
partialFee
string
Loading...
Request
1
# AssetHub (default) - for transaction fee estimation on AssetHub parachain
2
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/transaction/fee-estimate' \
3
--header 'Content-Type: application/json' \
4
--header 'Accept: application/json' \
5
--data '{
6
"tx": "YOUR_TRANSACTION"
7
}'
8
9
# Polkadot Relaychain - for transaction fee estimation on Relaychain (requires /rc prefix)
10
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/transaction/fee-estimate' \
11
--header 'Content-Type: application/json' \
12
--header 'Accept: application/json' \
13
--data '{
14
"tx": "YOUR_TRANSACTION"
15
}'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free