Questions tagged [storage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
18 views

How to initialize the storage while originating a contract with storage type (pair (address %administrator) (unit %dummy))?

The contract is meant to allow transfers only from the admin. I what to initialized the admin address at origination. parameter (or (unit %default) (pair %admin_transfer (address %destination) (mutez %...
user avatar
  • 11
0 votes
2 answers
25 views

Taquito "estimate" fails with "storage_exhausted.operation"

I was getting the error storage_exhausted.operation before when trying to send an operation. I thought I fixed it by ensuring I had enough funds in my account to cover the storage fee. Code was ...
user avatar
0 votes
2 answers
32 views

Are bigmaps stored on-chain or off-chain?

I can't find details on this, but from my experiments it seems like bigmaps rely on ipfs while maps are on-chain. Is this understanding correct? If not, where are bigmaps stored, and is it possible to ...
user avatar
  • 79
0 votes
0 answers
14 views

While doing the `dry-run` how can I pass the `record` as a parameter and `empty map` as a `initial storage`?

I'm having the following sample contract, where I'm trying to pass the record value as a parameter and also want to pass empty map as storage; can someone help me? type string_rec = { a : string; ...
user avatar
1 vote
1 answer
12 views

storage parameter

Hello I don't think I filled my storage correctly, when compiling it returns me: token null... (pair (pair (pair (pair (address %admin) (big_map %allowances (pair address address) nat)) ...
user avatar
  • 109
2 votes
2 answers
48 views

How do I send tez to my smart contract?

I would like to send tez to my smart contract, I tried from the temple interface but it does not work, I think it is because it is a contract address and not a simple address of wallet... Do you know ...
user avatar
  • 109
0 votes
0 answers
18 views

How to change storage price when transferring an nft?

I created a transfer function in this function I pass a price as a parameter, I would like this price to be updated on the storage of my nft... I don't really know how to do it (I'm new to tezos ) ...
user avatar
  • 109
1 vote
1 answer
23 views

how to correctly enter the storage parameters?

I am trying to pass the correct storage parameters in json to be able to deploy my smart contract. Thank you for your attention... (pair (pair (pair (pair (address %admin) (big_map %ledger nat address)...
user avatar
  • 109
1 vote
1 answer
41 views

how to fill storage parameters?

I am trying to pass the correct storage parameters in json to be able to deploy my smart contract. Thank you for your attention... (pair (pair (pair (pair (address %admin) (big_map %ledger nat ...
user avatar
  • 109
1 vote
1 answer
42 views

Storage settings

I would like to deploy my smart contract but I don't know what to put as parameters in the storage (I'm new to tezos). Thank you very much to those who will take the time to help me :) //FA2 '(pair (...
user avatar
  • 109
0 votes
1 answer
39 views

Originating a contract fails with 'unexpected_lazy_storage' ONLY when exception optimisation level is set to 'full-debug'

I have a contract that originates correctly when exception_optimization_level is set to debug-message and default-line. The contract tests, compiles, and works as expected except for a bug that is ...
user avatar
  • 79
1 vote
1 answer
31 views

Tezos compiling storage using file

The Tezos documentation all show the storage expression being defined inline when compiling storage. For example, using cameligo: ligo compile storage src/counter.mligo 5 --entry-point main If I try ...
user avatar
0 votes
1 answer
43 views

Delete the last block from tezos-node storage?

How can I delete the head block stored in tezos-node storage? I did something dumb - I modified the Octez code and then ran the modified tezos-node while pointing at the directory I use for my archive ...
user avatar
0 votes
1 answer
68 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/...
user avatar
0 votes
1 answer
25 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, ...
user avatar
1 vote
1 answer
38 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 ...
user avatar
3 votes
1 answer
172 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 ...
user avatar
  • 647
0 votes
1 answer
47 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?
user avatar
  • 480
1 vote
1 answer
76 views

How do I recover from a corrupted context

It seems my context or data dir is corrupted. How can I restore my node?
user avatar
  • 2,348
1 vote
2 answers
115 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 ...
user avatar
  • 557
1 vote
1 answer
53 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 ...
user avatar
  • 557
1 vote
1 answer
33 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 ...
user avatar
  • 557
1 vote
1 answer
70 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 ...
user avatar
  • 557
1 vote
2 answers
126 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 ...
user avatar
  • 557
3 votes
1 answer
62 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 ...
user avatar
  • 31
2 votes
1 answer
942 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 ...
user avatar
0 votes
1 answer
37 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 ....
user avatar
  • 650
0 votes
1 answer
51 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?
user avatar
4 votes
2 answers
124 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?
user avatar
2 votes
1 answer
185 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): ...
user avatar
  • 33
1 vote
2 answers
161 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 ...
user avatar
  • 33
1 vote
2 answers
164 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 {} "...
user avatar
  • 444
1 vote
1 answer
34 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?
user avatar
3 votes
1 answer
71 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 ...
user avatar
1 vote
1 answer
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.
user avatar
5 votes
1 answer
51 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 = ...
user avatar
  • 444
9 votes
1 answer
971 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 ...
user avatar
  • 495
4 votes
2 answers
636 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 ...
user avatar
  • 835
2 votes
1 answer
59 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 ...
user avatar
2 votes
1 answer
83 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?
user avatar
  • 883
4 votes
3 answers
422 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 ...
user avatar
7 votes
1 answer
166 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 ...
user avatar
8 votes
1 answer
119 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/...
user avatar
  • 2,252
7 votes
2 answers
272 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 ...
user avatar
6 votes
2 answers
214 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 ...
user avatar
  • 175
8 votes
1 answer
72 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?
user avatar
  • 509
7 votes
2 answers
587 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 ?
user avatar
  • 6,006
19 votes
3 answers
735 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?
user avatar
  • 1,310
14 votes
2 answers
228 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 ...
user avatar
  • 2,602