Hot answers tagged

15 votes
Accepted

How to calculate gas and storage for an operation?

There's no other way, you have to simulate what the operation does if you want to estimate this value, and this is exactly what a dry run does. You could try to reimplement it outside of a node, but ...
Arthur B's user avatar
  • 4,599
14 votes

Storage and parameter size limitations of smart contract?

1. Maximum parameter size per transaction The maximum number of bytes per transaction for a single transaction is limited several constants, in particular an upper size of for operations ...
arvidj's user avatar
  • 2,378
9 votes
Accepted

Fees in proto 003?

The information is available from the official documentation in the « Baker » section https://tezos.gitlab.io/mainnet/protocols/003_PsddFKi3.html The basic formula specifies that fees are now ...
Ezy's user avatar
  • 6,054
8 votes

What is the difference between fee and gaslimit?

In Tezos, the fee is independant from the gas : whatever the gas consumed, you always pay the full fee. However, bakers will probably compute the ratio fee/gas, and prefer transactions with higher ...
lefessan's user avatar
  • 3,308
5 votes
Accepted

Do bytes in the contract code cost the same as bytes in the contract storage?

Do bytes in the contract code cost the same as bytes in the contract storage? Yes. In both cases the cost is 0.25 tez per kilobyte. These are not fees that go to the baker including the operation, ...
Raphaël Cauderlier's user avatar
5 votes

What is the difference between fee and gaslimit?

The full fee is always paid for every transactions - the gas limit is just that, a cap on the amount of gas a given transaction can consume. A baker can be guaranteed that they are paid at least fee/...
Stephen Andrews's user avatar
5 votes
Accepted

Only 60% of the rewards made by a baker are distributed to its delegators?

You also need to take into account the (evaluated) balance of the baker on the tz1 address, which also generates rewards, but which are not stated under the rewards tab. Under the rewards tab, only ...
cryptodad's user avatar
  • 923
4 votes
Accepted

Fees for various operation

Docs in tezos.git Docs by TezTech To copy from the tezos.git docs: fees >= (minimal_fees + minimal_nanotez_per_byte * size + minimal_nanotez_per_gas_unit * gas) (size is ...
Tom's user avatar
  • 2,506
4 votes

Storage Fee, Baker Fee and Allocation Fee

The storage and allocations costs you mentions should rather be referred to as burn as they are not sent to anyone: they are only removed from the account of the sender. They are applied when the size ...
arvidj's user avatar
  • 2,378
4 votes

Burn fee for empty account

Fees and burns are different, completely separate, things. A fee is paid to the baker, a burn is destroyed. The 0.257 burn for allocating a new implicit account is, indeed, a burn, representing the ...
Tom's user avatar
  • 2,506
4 votes
Accepted

Why does the addition of a new key-value pair to a big_map not incur a storage fee at all times?

That may happen when someone removes data from the storage before your operation, releasing some space, so that the contract has a kind of "prepaid" space, for which storage fee won't be ...
Groxan's user avatar
  • 2,691
4 votes
Accepted

Is allocation fee re-charged after a network upgrade?

Allocation fee is charged every time you send tez to an empty account (with zero balance). So, if you send tez to the account with zero balance, then withdraw everything, and send tez again, you will ...
Groxan's user avatar
  • 2,691
3 votes
Accepted

Inconsistently being charge burn fees

When you transfer out of an address which has never revealed its public key, you must pay a burn to do this reveal operation. This was added back in, IIRC, 004 to prevent new address creation spamming....
utdrmac's user avatar
  • 3,422
3 votes

Translating gas and storage units to XTZ

Storage price is 0.25tez per kilobyte. Gas units are not directly charged, see https://forum.tezosagora.org/t/psa-do-not-quote-gas-cost-in-tez/1618.
Raphaël Cauderlier's user avatar
3 votes
Accepted

How can I configure my baker to accept 0-fee transactions?

You should set all three to 0 in order to accept 0-fee transactions. This will not affect the validity of the blocks you create. One possible negative repercussion is that your mempool could be ...
Arthur B's user avatar
  • 4,599
3 votes

How do baking node choose the transactions from the mempool

A baker is free to include whatever operations it wants, as long as they are valid. By default a baker want to create the block that generate the highest amount of fees (most bakers will also have a ...
Klassare's user avatar
  • 1,345
2 votes

Fees in proto 003?

The fees have been updated for proto004 (athens) please have a look here going forward https://github.com/keefertaylor/TezosKit/blob/master/docs/AthensProtocolFees.md
Ezy's user avatar
  • 6,054
2 votes

How to estimate transfer fee?

If you are using the tezos client CLI, you should try to run the transaction command with --dry-run in order to test it and receive a cost estimation.
Babell's user avatar
  • 500
2 votes

Cant send my tezos due to proto.006-PsCARTHA.contract.cannot_pay_storage_fee

When you send a transaction to an empty address you have to pay 0.257 tez allocation fee and in your case that caused a problem: At the block 930365 your balance was 1.336011 tez. At the block 930366 ...
Groxan's user avatar
  • 2,691
2 votes
Accepted

Why were so many Tezos burned in this transaction?

The main reason is the storage diff resulted from the transaction. Adding 380 items to a big map at once is very expensive. For your use case, storing the corner coordinates should be enough.
Rodrigo Quelhas's user avatar
2 votes
Accepted

What happens to the fee of a rejected transaction?

As Raphaël mentioned, the fees go to the baker that includes that non-applied (failed/backtracked/skipped) operation into the block it baked. Those operations are included in the blockchain! But they'...
Philippe Wang's user avatar
1 vote

Manager operation results: failed, backtracked, skipped

This has been answered in previous questions. Manager operation results: Applied | Backtracked | Failed | Skipped About costs (the fees still go to the baker): What happens to the fee of a rejected ...
Rodrigo Quelhas's user avatar
1 vote
Accepted

How are baker fees estimated in Tezos?

Transaction fees are up to the client to offer. While the documentation will say that there is no gas cost (which is technically true), the default baker config comes with a setup that specifies a ...
Simon McLoughlin's user avatar
  • 1,037
1 vote

stuck transaction error: Pre-validation error

Don't worry, your funds are safe. You need to wait a bit and then try again with a higher fee or lower gas_limit. Why did that happen? You sent a transaction with large gas_limit: 50000 (despite a ...
Groxan's user avatar
  • 2,691
1 vote

Increase gas_limit for tz1 to tz1 transfers

You can set the gas limit to whatever you want. Say 20000. Tezos will only consume however much it needs. If it only needs 5000, then it'll only consume 5000, not 20000.
utdrmac's user avatar
  • 3,422
1 vote

How to Calculate Tezos Fees

Answering my own question: 'Storage' (the bytes on chain) is burned and isn't related to the fee. The minimal_nanotez_per_byte refers to the size of the transaction itself when serialized to bytes ...
keefertaylor's user avatar
1 vote

Cant send my tezos due to proto.006-PsCARTHA.contract.cannot_pay_storage_fee

Which client are you using to send the transaction? In the failing transaction you did not include the origination burn. However it seems that in a subsequent transaction you did include the ...
adrian's user avatar
  • 1,009
1 vote

failed to send "proto.005-PsBABY5H.contract.cannot_pay_storage_fee"

The storage fee is higher than the contract balance Id : proto.005-PsBabyM1.contract.cannot_pay_storage_fee Category : temporary link
Tkk's user avatar
  • 53
1 vote

How to calculate gas and storage for an operation?

According to the official documentation available here you can get the gas and storage cost of the operation you plan to broadcast to the network by passing the parameter --dry-run to the client node ...
Ezy's user avatar
  • 6,054

Only top scored, non community-wiki answers of a minimum length are eligible