Questions tagged [fee]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 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 ...
Данила Алексеев's user avatar
1 vote
1 answer
51 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 ...
hs1228's user avatar
  • 45
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 ...
Zacksys ME's user avatar
0 votes
1 answer
34 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?
b0zero's user avatar
  • 533
2 votes
1 answer
48 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 ...
Dung Nguyen's user avatar
1 vote
1 answer
51 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 ...
cibou's user avatar
  • 131
4 votes
1 answer
138 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 ...
pjozvtg's user avatar
  • 75
3 votes
1 answer
50 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 ...
Heindrick's user avatar
  • 183
3 votes
0 answers
44 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 ...
Vitaly Peryatin's user avatar
5 votes
1 answer
348 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) ...
Vitaly Peryatin's user avatar
2 votes
2 answers
184 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 ...
KathrynColleen's user avatar
0 votes
1 answer
35 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>>::...
nbaztec's user avatar
  • 197
2 votes
1 answer
218 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?
user3606's user avatar
1 vote
1 answer
67 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-...
Non-named's user avatar
  • 304
4 votes
1 answer
97 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 ...
Non-named's user avatar
  • 304
1 vote
0 answers
33 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, ...
Rose's user avatar
  • 305
2 votes
1 answer
86 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 ...
Dubs's user avatar
  • 294
1 vote
1 answer
41 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 ...
KathrynColleen's user avatar
4 votes
1 answer
388 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&...
Valentun's user avatar
  • 220
0 votes
1 answer
131 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
cibou's user avatar
  • 131
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
Nikita Chernega's user avatar
0 votes
2 answers
117 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....
Lovish Arora's user avatar
0 votes
1 answer
105 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 ...
Muhammad Talha Dar's user avatar
1 vote
2 answers
126 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 ...
AurevoirXavier's user avatar
1 vote
2 answers
258 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
Unknown Helper's user avatar
4 votes
0 answers
117 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. ...
hgminerva's user avatar
  • 467
3 votes
1 answer
112 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 ...
Mo Elshami's user avatar
1 vote
1 answer
75 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 ...
Timothée Delabrouille's user avatar
0 votes
1 answer
106 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!!!
hoangnt2's user avatar
1 vote
1 answer
72 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 ...
Yatusabes's user avatar
  • 766
2 votes
1 answer
71 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 ...
Yatusabes's user avatar
  • 766
4 votes
1 answer
90 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 ...
PaperFrog's user avatar
  • 495
5 votes
2 answers
480 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 ...
Daniel Savu's user avatar
7 votes
1 answer
391 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?
Purple_Turtle's user avatar
3 votes
1 answer
267 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 = (-/+)...
99kies's user avatar
  • 753
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 ...
user5867's user avatar
5 votes
2 answers
160 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 ...
Bernardo Rodrigues's user avatar
5 votes
1 answer
153 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/...
uint's user avatar
  • 53
12 votes
3 answers
635 views

how we can implement gasless/feeless transaction?

Do we have any reference how we can implement gasless/feeless transaction?
Pankaj's user avatar
  • 2,031
8 votes
1 answer
235 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....
Michal Danco's user avatar
8 votes
1 answer
147 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(...
Non-named's user avatar
  • 304
6 votes
1 answer
75 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 ...
Bernardo Rodrigues's user avatar
9 votes
2 answers
67 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 ...
Crystalin's user avatar
  • 790
4 votes
1 answer
76 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?
Crystalin's user avatar
  • 790
5 votes
1 answer
171 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?
Minh Mốc's user avatar
5 votes
1 answer
246 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., ...
Shubham Gupta's user avatar