Questions tagged [storage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

How to get parsed / human-readable contract storage with tezos-node?

How can I get human-readable contract storage data with tezos-node? If I run a command like curl -s http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BGQR7t4izzKZ7eRodKWTodAsM23P38v7N/...
0
votes
1answer
18 views

Does tez get credited to your account if you free storage (delete bytes)?

Storing data in the Tezos blockchain costs tez, which is burned. Does the reverse direction work in reverse? In other words, if I free storage (delete bytes), will I get freshly-minted tez? IIUC, ...
1
vote
1answer
29 views

how to calculate current storage values for liquidity baking CPMM

In looking at the storage values of the CPMM one can see that as of right now the CPMM has the following amounts of tzBTC (represented by the contract as tokenPool), xtz (represented as xtzPool), and ...
2
votes
1answer
164 views

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

I'm trying to understand the breakdown of the storage costs for smart contracts. My understanding is that a smart contract has some 'code' which is immutable, and some 'storage' which is mutable. Or ...
0
votes
1answer
29 views

tezos-node command to check context & store integrity

Is there a way to check if context and store data folders are corrupted or not via command line?
1
vote
1answer
60 views

How do I recover from a corrupted context

It seems my context or data dir is corrupted. How can I restore my node?
1
vote
2answers
76 views

Why is this big map update using up so many bytes?

In this question I asked why so much Tezos was burned when updating 380 cells in a grid. It's surprising to see how many bytes it actually took though. If you look at the transaction, there were 380 ...
1
vote
1answer
46 views

How can I encode a 2D matrix of booleans in the least amount of bytes?

I'm looking at this ethereum smart contract that iterates over an area in a 2D bool matrix to reserve pixels. When looking at a call to that ethereum smart contract for a 20x11 area, it used 0.0315 ...
1
vote
1answer
26 views

How to migrate existing smart contract data to a new one when needing additional storage requirements?

Obviously the first answer is to try to avoid running into this scenario by having some flexibility in storing additional fields using maps (example). However, let's think about the scenario where ...
1
vote
1answer
46 views

How to add new record fields in data storage after contract deployment? Is storing JSON in a field viable?

AFAIK, there is no way to update storage types(ex: can't add a new record field to a Map<sp.Nat, sp.record(a=1)>) of a contract after deployment. (Correct me if I'm wrong). This means, after a ...
1
vote
2answers
70 views

How to fetch all the values in a big map using taquito?

Per the BigMapAbstraction Taquito API docs, there isn't a way to fetch all the values in that map. Is the suggested way to fetch all of values in the map by doing batch queries on it then? Or what's ...
3
votes
1answer
51 views

Is it possible to retrieve only a single variable from contract storage?

As far as I can tell using the taquito npm package, in order to get any storage from a contract, you have to get all of a contract's storage. This seems like it can become highly inefficient if you ...
1
vote
1answer
432 views

Storage and costs

I have tried a google search but with no luck as to what the costs are for storing content on the Tezos blockchain, if these costs are kept on a level if the price of XTZ goes up, plus what are the ...
0
votes
1answer
24 views

If you query storage or big map at block X does it include changes from operations of block X?

The RPC (currently delphinet), allows you to query a contract's storage and big map key at a particular block id. GET ../<block_id>/context/big_maps/<big_map_id>/<script_expr> GET ....
0
votes
1answer
42 views

Translating gas and storage units to XTZ

I'm interested in translating the gas and storage costs I get in response from the node after an operation into XTZ prices. Where could I find this information online?
4
votes
2answers
76 views

How to store a really long string on the Tezos blockchain

Let's say I wanted to store an entire article or a manifest on the Tezos blockchain. Something that is bigger than 100kB. How would I go about doing that?
2
votes
1answer
124 views

How to get a contract storage data from another contract in smartPy?

I'm trying to access a storage data of a contract from another one using the continuous passing style in smartPy. import smartpy as sp class XXIFA12(sp.Contract): def __init__(self, admin): ...
1
vote
2answers
116 views

How to get a contract storage data or call a "get" entrypoint from another contract in smartPy?

I want to interact with the FA12.py smart contract (https://smartpy.io/demo/index.html?template=FA1.2.py) and get the balance of a user, from another smart contract. the FA12 function that I tried to ...
1
vote
2answers
129 views

Deploy FA1.2 Ligo token contract

I'm deploying the FA1.2 contract with the online LIGO IDE, Here's a link to the SC: https://ide.ligolang.org/p/QZ85RIfszExxeDPEf_W52A and i'm initializing the storage this way: (Pair (Pair {} "...
1
vote
1answer
33 views

Check if an address needs storage paid

What's the quickest way through RPC call to check if an address need 0.257 xtz burnt in order to pay for storage?
3
votes
1answer
66 views

When an implicit account is considered inactive?

When an implicit account is considered inactive? If my activated tz1 account send ALL his XTZ to another (reaching 0 balance). Does it become inactive immediately? So another account sending XTZ to my ...
1
vote
1answer
29 views

Tezos directory contains the lmdb database witch cannot [closed]

Tezos directory contains the LMDB database which cannot be handled with this version of the node.
5
votes
1answer
47 views

bigmap.get(key, "") with default param in case of no entry for key in the map with Taquito

Can we do something similar to myMap.get(key, defaultValue = None) of smartPy with Taquito? An instruction like: const myContract = await Tezos.contract.at(contractAddress); const contractStorage = ...
7
votes
1answer
654 views

Storage and parameter size limitations of smart contract?

Got a few questions regarding storage limitations of smart contract. What is the maximum number of bytes of data that I can send for a single transaction? Is there a size limit to the storage of a ...
4
votes
2answers
505 views

How to extract the storage of a smart contract?

How do I extract the storage data of a deployed smart contract? I am trying to read the storage data from the "free Ledger Nano S" contract KT1BRudFZEXLYANgmZTka1xCDN5nWTMWY7SZ from the Tezos ...
2
votes
1answer
44 views

How long should exporting a snapshot take?

If tezos-node snapshot export ... is supposed to make a ~2GB snapshot, at the speed it is going for me it will take weeks to complete. How long should this take? Exporting a rolling snapshot doesn't ...
2
votes
1answer
73 views

Constant storage size in the rolling history mode?

Under the "rolling" history mode, does the size of a node's stored data remains roughly constant in time? If yes, what is the size currently?
4
votes
3answers
328 views

How to get smart-contract storage data?

I try to get smart-contract storage data: eztz.node.setProvider('https://alphanet-node.tzscan.io') eztz.contract.watch(addr, 2, function(s){ console.log("New storage", s); }); But got an ...
7
votes
1answer
159 views

How to recover from "No space left on device" error?

The drive the node uses ran out of disk space. This resulted in a series of errors in a format similar to: Apr 16 01:58:36 - validator.block: Validation of block ...
8
votes
1answer
107 views

Why does a transaction contain a storage dump?

I have looked at a few transactions with some smart contracts and I have found that they store a dump of contract's storage. For instance: https://mainnet.tezrpc.me/chains/main/blocks/246869/...
7
votes
2answers
243 views

Wallet using the secure enclave of the iPhone

P-256 signing curve can be used for tz3 accounts. One of the secure enclave able to store a 256-bit elliptic curve such as P-256 is the one present in iPhones an Macs with Touch ID or Face ID. Is ...
6
votes
2answers
186 views

What are the storage requirements for running a node?

What are the current and projected future storage space requirements for running a Tezos mainnet node? As I understand, garbage collection and zk-snarks could reduce the storage required in the ...
8
votes
1answer
67 views

Garbage Collection vs Pruning

I've seen a few conversations about how garbage collection and/or pruning will reduce storage requirements. What is the difference between these two approaches?
7
votes
2answers
528 views

Fees in proto 003?

Fees have been updated from proto 002 to proto 003. Is there a reference document available somewhere that is indicating fee information for tezos proto 003 ?
19
votes
2answers
637 views

How to calculate gas and storage for an operation?

In protocol 003_PsddFKi3, how can the gas and storage usage be calculated without doing a dry-run in a node?
14
votes
2answers
205 views

Garbage Collection

I hear there are plans for garbage collection for the Tezos blockchain. What does this mean exactly? What are these "garbage" that needs to be collected, why are they there in the first place? Is ...