Questions tagged [fee]
The fee tag has no usage guidance.
46
questions
1
vote
1
answer
52
views
How does parachain upgrade works?
Let we have a running parachain on kusama and want to do a runtime upgrade. New runtime is bigger then the old one by 100 kb. New runtime will be stored on the relay chain after runtime upgrade ...
1
vote
1
answer
56
views
What are the best refTime and proofSize for making AsMultiTx?
Our's Environment
Use sidecar (v17.0.0)
Use Tx-wrapper-core (v7.0.1) https://github.com/paritytech/txwrapper-core
Polkadot node v1.0.0
Use Westend(testnet) and Polkadot(mainnet)
Since being updated ...
0
votes
0
answers
28
views
How can one design and implement a fee rule?
I hope you are doing well!
How can one design and implement a fee rule on a substrate-based blockchain that is contingent on the transaction payment value?
I would like to create this fee rule based ...
0
votes
1
answer
36
views
Does ExtrinsicBaseWeight apply even when we return 0 weight from extrinsic?
If we return Weight::zero() for an extrinsic that returns DispatchResultWithPostInfo, does that mean that we discard extrinsic base weight which is included for every transaction?
2
votes
1
answer
57
views
How to calculate fee xcm message at source chain and destination chain?
I am looking for a way to charge for xcm message.
(I know this topic has been discussed a lot, but I still haven't found my own answer, and haven't written a script to test, so I want to open this ...
1
vote
1
answer
60
views
Frontier & Substrate
Hello we are using frontier, and we would like to remove gas fees for all evm transactons, I tried many things, but didn't achieve..
I still need to pass gas when I sign and send a transaction :
await ...
4
votes
1
answer
150
views
How can I retrieve the baseFeePerGas value for historical blocks on Astar?
I want to calculate fees for historical EIP-1559 transactions on Astar EVM. For this, I need to use the GasPrice formula:
GasPrice = BaseFee + MaxPriorityFeePerGas < MaxFeePerGas ?
BaseFee ...
3
votes
1
answer
52
views
Get extrinsic fee using Polkadot.js/api
I want to get extrinsic fee using polkadot.js/api.
I am checking kusama chain.
https://kusama.subscan.io/extrinsic/17981827-3
I need to get 0.00053835621 fee from above extrinsic. Which api can I use ...
3
votes
0
answers
45
views
How can I get an instruction's XCM base weight for Kusama and other substrate chains through Polkadot JS?
I can get instruction's XCM base weight from code (for example, WithdrawAsset instruction), but I can't found how to get this value from PolkadotJS. How can I get an instruction's XCM base weight for ...
5
votes
1
answer
362
views
How to calculate fee for XCM transfer?
I know there is a plenty of XCM transfer cases:
RelayChain to ParaChain
ParaChain to RelayChain
ParaChain to ParaChain (Non-native token) with xTokens pallet
ParaChain to ParaChain (Non-native token) ...
2
votes
2
answers
195
views
How To Adjust The Fees On A Running Substrate Chain?
Fees for transactions in our test net are too high and we would like to adjust them to be some factor lower across the board. Is there a simple way to do that using a call from the Polkadot.js apps ...
0
votes
1
answer
36
views
PostDispatch: Report Actual Weight but Charge Different Fee
Given the following extrinsic
#[pallet::weight(<T as Config>::WeightInfo::foo(*hint))]
fn foo(hint: u32) {
let real = get_real();
if real > hint {
return <Error<T>>::...
2
votes
1
answer
257
views
Estimated fee and Used fee
Subscan recently made a change to show estimated fee and used fee, while if you query data from sidecar, partial fee + tip = estimated fee. What is this used fee and how is it calculated?
1
vote
1
answer
70
views
Transaction fees withdraw/deposit in
I made transactions on a simple EVM DEX contract.
I initially called the approve method which only triggered balances.withdraw event. I understand that this event is triggered as calling this write-...
4
votes
1
answer
100
views
What are the fees associated with ink! contract deployment?
I see that there are many events emitted during the process of deploying my contract on Substrate local chain (SNOW Network to be specific).
4 ICZ was reserved from deployer account
1 ICZ & 2 ICZ ...