17
votes
Accepted
Garbage Collection
Each Tezos node maintains a representation of the current state of the ledger. That state includes things like the storage of each contract, the balance of different addresses, etc. The goal of the ...
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 ...
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
...
11
votes
Accepted
How to recover from "No space left on device" error?
The clue to the solution is in the part of the error saying that Validation of block BK... failed.
It seems that it wasn't checking to see if there was any new free disk space available, it was just ...
10
votes
Accepted
Garbage Collection vs Pruning
Garbage collection deletes unused data from your drive. In this case, it deletes intermediate states which are not needed to operate the chain. No information is lost as those states can be ...
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 ...
9
votes
Accepted
Wallet using the secure enclave of the iPhone
There isn't currently a wallet for iOS using the secure enclave. But the tz3 accounts use p-256 encryption and were put in primarily to support iOS, Android, and other devices which are only ...
7
votes
Accepted
How to extract the storage of a smart contract?
In the command line
./tezos-client get contract storage for KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ
You could also just call the RPC
curl http://localhost:8732/chains/main/blocks/head/context/...
5
votes
Accepted
What are the storage requirements for running a node?
As of today(2/18/2019), the chain size is ~95GB. The chain grows about .5GB per day so if we don't change anything, namely garbage collection, we'll need about 100GB upgrade about every 7 months.
But ...
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, ...
4
votes
Accepted
When an implicit account is considered inactive?
An implicit account will be deleted as soon as it's emptied. However, if it's a registered delegate, it won't be deleted. Also, if the implicit account is delegated, you will not be able to empty it, ...
4
votes
Storage and costs
Storage cost per byte is defined in protocol constants (see "Byte cost"). For the current protocol it's 0.00025 tez per byte that means you will pay ~262 tez for storing 1MB of data. Note: ...
3
votes
Accepted
How to get a contract storage data from another contract in smartPy?
There are several example templates, such as FA2 (real world token contracts) and Collatz (small demo and test template).
https://www.smartpy.io/dev/?template=FA2.py
https://www.smartpy.io/dev/?...
3
votes
Tezos directory contains the lmdb database witch cannot
A guide to upgrade toward the new storage can be found here.
3
votes
Accepted
How to store a really long string on the Tezos blockchain
You actually answered the question in the comments, but for those who don't read comments:
There are two limitations:
max_operation_data_length: 16384 bytes
hard_storage_limit_per_operation: 60000 ...
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.
3
votes
Accepted
Why is this big map update using up so many bytes?
big_map is extremely expensive. It allows you to put as much data as you want in the contract, but you end up paying more in counterpart.
Check this example:
It produces 2 identical contacts, one uses ...
3
votes
How do I send tez to my smart contract?
To have the same transfer behavior on originated contracts (KT1... addresses) as on implicit accounts (tz{1,2,3}... addresses), you will need to add a default entrypoint with unit input.
(unit %...
3
votes
Accepted
Are bigmaps stored on-chain or off-chain?
big_maps are stored lazily onchain. Regarding using information from inside a big_map inside an onchain view, you can do that, but you can't have the view return the whole big_map, only specific ...
2
votes
What are the storage requirements for running a node?
My dedicated miner/machine has 8gb of ram and a 512 gb SSD. SSD could be less, but data is increasing about 0.5gb per day and I wanted enough space to not have to worry.
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
2
votes
Garbage Collection
If you are interested in a study on the impact of storage improvements, see here (there is also a link towards a storage-efficient tezos node).
2
votes
How to get smart-contract storage data?
Tzscan has joined the Dune network and APIs can change quite dramatically, which will break your app.
Why not using Taquito? It is simple and elegant and the package being bundled with your app, it ...
2
votes
Accepted
How to get smart-contract storage data?
I found the solution!
For me it:
function httpGet() {
let xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", 'https://alphanet-node.tzscan.io/chains/main/blocks/head/context/contracts/<...
2
votes
Accepted
Why does a transaction contain a storage dump?
Actually, it is not the full storage, but only the non-big_map part. Normally, that part should not grow too much, compared to the big_map part.
But indeed, it can still be expensive to repeat that ...
2
votes
Wallet using the secure enclave of the iPhone
Taylor Keefer demonstrated a prototype iOS app on May 6, 2019 in a Medium article "Signing Tezos Transactions with iOS’s Secure Enclave and Face ID". As in the solution described by @cousinit, this ...
2
votes
Accepted
Constant storage size in the rolling history mode?
When running a node, the store is responsible of storing blocks (headers, operations, …) and the context stores the ledger state (balances, contracts, …).
In the current rolling mode implementation, ...
2
votes
bigmap.get(key, "") with default param in case of no entry for key in the map with Taquito
As of Taquito release v6.1.0-beta.0 Taquito offers a new API for Maps which provides you with get and set calls.
The API does not offer an optional default value param, You will have to catch the ...
2
votes
How to extract the storage of a smart contract?
Let's find the contract on Arronax and look at its code...
storage unit;
code { CDR ;
NIL operation ;
AMOUNT ;
PUSH mutez 0 ;
{ COMPARE ; EQ ; IF {} { SOURCE ; CONTRACT ...
2
votes
How to get a contract storage data or call a "get" entrypoint from another contract in smartPy?
assertTrasnferRecord = sp.TRecord(arg = sp.TRecord(owner = params.owner), target = params.address)
You're building a type sp.TRecord and put a value inside params.owner.
This is not well built which ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
storage × 50smart-contracts × 19
node × 8
smartpy × 7
taquito × 7
bigmap × 6
fees × 5
deploy × 5
parameter × 4
tezos-client × 3
michelson × 3
error × 3
gas × 3
transactions × 2
contract × 2
ligo × 2
snapshots × 2
blockchain × 2
origination × 2
burn × 2
rpc × 1
protocol × 1
operation × 1
wallets × 1
api × 1