Questions tagged [fee]
The fee tag has no usage guidance.
45
questions
1
vote
1
answer
48
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
25
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
30
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
34
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
43
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
102
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
30
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
43
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
303
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) ...
1
vote
2
answers
137
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
32
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
141
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
59
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
86
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 ...
1
vote
0
answers
30
views
What is the fee_used meaning? How to get it?
Problem: The handling fee deducted from my account is "fee": "2906481685620092",but the fee_used is "fee_used": "3626624538723810", Which one should I believe, ...
2
votes
1
answer
73
views
collect tx fees from a pallet
Is there a way to send tx fees of a pallet to an account? Like transactions fees of pallet X is send to an account. We can split the global tx fees between treasury and other but we want to do it as a ...
1
vote
1
answer
39
views
tokenDecimals = 10 Causes Astronomical Fees - How To Change tokenDecimals On A Running Chain?
We have started a test chain with tokenDecimals = 10 in the chain spec JSON. The chain is running beautifully BUT fees are astronomical. For example, it takes 2.6 Billion to run for council. We are ...
4
votes
1
answer
355
views
Rpc payment_queryFeeInfo fails on Westend 9310
After the latest upgrade of Westend runtime to version 9310 the RPC call payment_queryFeeInfo fails with the following error message:
{"jsonrpc":"2.0","error":{"code&...
0
votes
1
answer
103
views
Calculate fee for a given transaction
is it possible to calculate the weight (and transform to fees) for a given transaction ?
I mean, I need to create a custom RPC method which will calculate that and return the fees.
Thank you
1
vote
1
answer
34
views
How to specify weight for call with loop
I have a loop in call which depends on array from arguments, so how can i specify weight to be multiplied to array length from arguments
0
votes
2
answers
111
views
Collect some transfer fees before any transaction
I want to collect some transfer fee besides base, weight, length fee before user makes a transaction.
Like if the base + weight + length fee = 0.1
And For every transaction I want to add additional 0....
0
votes
1
answer
92
views
EVM transaction gas fees not added to the treasury
I've implemented a POA EVM-Compatible chain using the Frontier node template on branch polkadot-v0.9.22.
I've Implemented a DealWithFees struct and let some part of fees be added to a treasury i've ...
1
vote
2
answers
98
views
How do the `DispatchResultWithPostInfo` and `Pays::No` actually work?
This makes me confused for a whole day.
First, please take a look at these:
PolkadotApps, Subscan, Code.
From the code, we know this is a Pays::No call. Indeed, it doesn't cost any tx fee. But why ...
1
vote
2
answers
216
views
How can i set fix gas fee for all transaction in substrate?
I want to set a single fee for every transaction happening in substrate either its transfer or any other transaction I want the transfer fee to be 1 unit.
Thanks
4
votes
0
answers
108
views
How to modify and implement transaction fees?
So now that I can already capture the transaction_fees+tip and into the Author of the block. I want to modify my transaction_fees so that I can charge for example 0.4% of whatever being transferred.
...
3
votes
1
answer
100
views
Collator reward and inflation
What would be the recommended approach to introduce inflation for block production/collator reward?
Is NegativeImbalance a good place for this, or implementing a separate pallet that schedules ...
1
vote
1
answer
71
views
Does call.dispatch make `origin` pay the fees to the network?
I'm writing a hook for a pallet, this hook pop Call out of storage and execute them on behalf of a specified user through call.dispatch(origin).
My question is:
Will dispatch will make origin pay the ...
0
votes
1
answer
96
views
Is there a way to collect fee of transaction?
I'm looking to collect Extrinsic transfers as images on https://polkadot.subscan.io/
Maybe use api sidecar or rpc to collect this data? Please help me!!!
Thank you so much!!!
1
vote
1
answer
66
views
Is there a way to cap the amount of weight that a type of extrinsic can consume in a block?
My understand in substrate is that there are three types of dispatches, normal, operational, and mandatory.
This types of dispatch classes can consume a portion of the total weight in a block.
I can ...
2
votes
1
answer
69
views
Can I add a base fee per extrinsic?
My understanding is that there is a configurable base fee which is the minimum amount that a user pays for ANY transaction.
Is there a way to add an additional base fee per extrinsic? This fee should ...
4
votes
1
answer
86
views
Is there a way to find out the appropriate fee when generate tx?
We using sidecar, And we want a fast transaction even if we pay a high fee.
Do you happen to have statistics on the appropriate fees for transfer?
If not, is there a way to know the appropriate fee ...
5
votes
2
answers
373
views
Determining the final fee from a client
Is there a way to check the exact final_fee that the signer of an extrinsic was charged? I'd like to do so from subxt for monitoring purposes, but could not find this info in the TransactionProgress ...
7
votes
1
answer
388
views
On empty blocks, who is paying timestamp fees?
On empty blocks you can see such transactions where paysFee: Yes. What does it mean though? Who is paying the fees for the timestamp module?
3
votes
1
answer
230
views
How is base fee calculated?
How is base fee calculated?
My understanding is that WeightToFee is just a transformation equation(Weight -> Balance).
But what is this x?
So the final transaction fee is this?:
base_fee = (-/+)...
4
votes
1
answer
53
views
Westend PartialFees in version 9190
Does the 9190 version of westend change something with fees? We used to parse a transaction and check for a field called partialFee but looks like it's not present anymore since I see this for a block ...
5
votes
2
answers
152
views
Hardware: Benchmark Standard vs Ecosystem Nodes
During the last Substrate Builders Program Office Hours, the Mangata team raised awareness around some potential confusion around the Substrate Benchmarking System and how it is being applied in the ...
5
votes
1
answer
144
views
Transaction fee paying fund
I'm interested in systems where transaction fees can be paid for from a fund so that the end users don't have to deal with the chain's native token.
This is what I've found so far: https://github.com/...
12
votes
3
answers
535
views
how we can implement gasless/feeless transaction?
Do we have any reference how we can implement gasless/feeless transaction?
8
votes
1
answer
228
views
How to determine destination chain transfer fee when executing tx.xcmPallet.reserveTransferAssets
We want to perform extrinsic xcmPallet.reserveTransferAssets from Kusama to our Mangata parachain.
const transfer = await api.tx.xcmPallet.reserveTransferAssets(...someParas);
const info = await api....
8
votes
1
answer
130
views
Substrate Meta Transaction
While writing dispatchable methods on substrate pallets, is it possible to sign transaction from one wallet (wallet-1) and then forward that signed transaction to the blockchain from another wallet(...
6
votes
1
answer
71
views
fee economics around remark
From looking at the source code, it looks like system pallet's remark extrinsic has null weight.
Even though remarks don't add anything in terms of block execution, one could argue it's still having ...
9
votes
2
answers
64
views
Do all extrinsic fees have to be paid when using utility.batch?
Some extrinsics allow fees to not be paid if they execute properly (Ex: council.vote if it is the first vote of that account on the given proposal).
What happens when those extrinsics are included ...
4
votes
1
answer
75
views
How to compute the fees of a block
Having a block with all the extrinsics/events, what code should I write (preferably using polkadotJs) to compute the total amount of fees paid?
5
votes
1
answer
154
views
Where do the transaction fees go to?
Whenever I submit an extrinsic, there's a small transaction fee applied to the sender. Where does it go to?
5
votes
1
answer
221
views
How to set base_fee and len_fee to zero?
I was trying to modify the transaction fee and for that I only want the congestion of the network. In FeeDetails, that is present in the transaction-payment pallet, we have three fields, i.e., ...