Hot answers tagged

15

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 the approach would be the same.


10

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 max_operation_data_length and the hard gas limits for operations and blocks (a block contains a set of operations): "max_operation_data_length": 16384, "...


9

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 dependent on 3 parameters: a fixed minimum fee, a fee by storage unit and a fee by gas unit (reflection the cost of performing calculations). Those 3 parameters are ...


8

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 fee/gas, i.e. more reward for less computation.


5

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/gas_limit per unit of gas consumed, even if they consume less. Some bakers will also enforce a minimum per_gas fee, which is currently set to 0.1 mutez (or 1 ...


5

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 the KT1 addresses of the delegators are shown. It is not uncommon for a baker to own 40% of the total stake, so I don't think there is anything suspicious here. ...


4

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 the size of the operation in binary.) With current defaults: minimal_fees = 0.000 1 ꜩ (100 µꜩ) minimal_nanotez_per_gas_unit = 100 nꜩ/gu (0.000 000 1 ꜩ/gu) ...


4

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 of the blockchain increases. Fees, such as the baker fee, are payed to someone, in this case the baker. When the size of the context of the blockchain ...


4

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 storage cost of maintaining an account in the node state indefinitely. When an operation requires a storage burn, you must indicate in the storage_limit how ...


4

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, they are simply burnt.


3

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. If you transfer the entire balance out of a tz1/2/3, then you must again pay the burn fee to "reactivate" the account. The blockchain does a type of ...


3

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.


3

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 spammed with very cheap transactions and the mempool isn't currently as sophisticated as it could be. However, if that happens you could revert to requiring more ...


3

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 minimum fee threshold to pass prevalidation). In combinatorial optimization this is described as a knapsack problem. So how the baker choose transactions is ...


2

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


2

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.


2

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 you tried to send a transaction with amount 1.1 tez, baker fee 0.015913 tez and allocation fee 0.257 tez - it's 1.372913‬ tez in total. As you can see, you ...


2

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.


1

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're not applied. It's normal that you do not want to pay for operations that fail. You should run simulations before you make an operation that might fail. You ...


1

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 minimum fee per gas. Any operation that offers less than this is ignored. Operations that offer higher than this will be prioritised. Its up to each baker to ...


1

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 simple tz-to-tz transfer consumes about 1427 gas) and rather small, for such gas limit, fee:10000. So no one baker picked your transaction to include into a block ...


1

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.


1

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 with a signature.


1

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 origination burn and that it worked.


1

The storage fee is higher than the contract balance Id : proto.005-PsBabyM1.contract.cannot_pay_storage_fee Category : temporary link


1

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 Quoting the doc it mentions Another important use of validation is to determine gas and storage limits. The node first simulates the execution of a ...


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