Questions tagged [storage]

The tag has no usage guidance.

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

Add text to Tezos contract storage results in HttpRequestFailed: Error: timeout of 30000ms exceeded

I'm trying to get this tutorial to work but adding a memo to the Tezos blockchain always results in a HttpRequestFailed: Error: timeout of 30000ms exceeded Full repo: https://github.com/MelvinManni/...
Tom's user avatar
  • 113
2 votes
1 answer
90 views

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

For example- I am sending an FA1.2/FA2 token to an address that has previously not held any amount of that token. So, the address is not present in the ledger big_map of the contract. This would ...
Anshu Jalan's user avatar
2 votes
3 answers
104 views

How to get fxhash token attributes with smartpy?

Want to obtain fxhash token attributes/metadata with smartpy, the problem is fxhash smart contract doesn't have entrypoint or views for it. There is "get_token_data" view but it returns ...
Hexa's user avatar
  • 61
1 vote
1 answer
74 views

How to encrypt and decrypt some data with a users wallet before persisting it inside publicly readable storage?

I would like to encrypt a piece of data before persisting it in publicly accessible storage (e.g. localstore, IndexedDB, smart contract etc), ideally with no user interaction for encrypting or ...
0x10's user avatar
  • 359
1 vote
1 answer
24 views

Is it possible to use an existing contracts storage as the seed data for a new contract that has the same storage schema?

Can you deploy a new copy of a contract with SmartPy and simultaneously copy the storage of an already existing contract that has an identical model into the freshly deployed contract?
0x10's user avatar
  • 359
1 vote
1 answer
52 views

How to simply store signed, hashed data on Tezos blockchain?

I'm new to Tezos. I'm wanting to store some signed, hashed data on the Tezos blockchain, most likely using Taquito/Batch API. Can anyone direct me to the correct method to simply send the data and get ...
IFC's user avatar
  • 13
1 vote
1 answer
67 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 %...
Phil's user avatar
  • 49
0 votes
2 answers
121 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 ...
Web and Flow's user avatar
0 votes
2 answers
53 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 ...
0x10's user avatar
  • 359
0 votes
1 answer
28 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; ...
bountyCoder's user avatar
1 vote
1 answer
18 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)) ...
oriana's user avatar
  • 119
3 votes
3 answers
163 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 ...
oriana's user avatar
  • 119
1 vote
1 answer
55 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)...
oriana's user avatar
  • 119
1 vote
1 answer
48 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 ...
oriana's user avatar
  • 119
1 vote
1 answer
53 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 (...
oriana's user avatar
  • 119
0 votes
1 answer
61 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 ...
0x10's user avatar
  • 359
1 vote
1 answer
45 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 ...
codethink's user avatar
0 votes
1 answer
62 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 ...
emchristiansen's user avatar
0 votes
1 answer
84 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/...
emchristiansen's user avatar
0 votes
1 answer
36 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, ...
emchristiansen's user avatar
1 vote
1 answer
53 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 ...
Whirlybird's user avatar
3 votes
1 answer
177 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 ...
Darius's user avatar
  • 649
0 votes
1 answer
60 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?
Babell's user avatar
  • 500
1 vote
1 answer
84 views

How do I recover from a corrupted context

It seems my context or data dir is corrupted. How can I restore my node?
arvidj's user avatar
  • 2,378
1 vote
2 answers
128 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 ...
JJJ's user avatar
  • 557
1 vote
1 answer
65 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 ...
JJJ's user avatar
  • 557
1 vote
1 answer
40 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 ...
JJJ's user avatar
  • 557
1 vote
1 answer
94 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 ...
JJJ's user avatar
  • 557
1 vote
2 answers
196 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 ...
JJJ's user avatar
  • 557
3 votes
1 answer
79 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 ...
Matt's user avatar
  • 31
2 votes
1 answer
1k 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 ...
Dominic Reid's user avatar
0 votes
1 answer
66 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 ....
MCH's user avatar
  • 680
0 votes
1 answer
55 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?
itamar reif's user avatar
4 votes
2 answers
152 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?
Thorkil Værge's user avatar
2 votes
1 answer
245 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): ...
Ahmed's user avatar
  • 33
1 vote
2 answers
195 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 ...
Ahmed's user avatar
  • 33
1 vote
2 answers
206 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 {} "...
Daly's user avatar
  • 442
1 vote
1 answer
36 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?
Rocco Musolino's user avatar
3 votes
1 answer
73 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 ...
Rocco Musolino's user avatar
1 vote
1 answer
31 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.
Nathan Senn's user avatar
5 votes
1 answer
52 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 = ...
Daly's user avatar
  • 442
9 votes
1 answer
1k 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 ...
Vinnyson's user avatar
  • 515
4 votes
2 answers
754 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 ...
XTZST2O's user avatar
  • 835
2 votes
1 answer
70 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 ...
hobbybaker's user avatar
2 votes
1 answer
89 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?
Eugen's user avatar
  • 975
4 votes
3 answers
514 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 ...
Mikhail Petrov's user avatar
7 votes
1 answer
175 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 ...
Bake ꜩ for Me's user avatar
8 votes
1 answer
129 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/...
Groxan's user avatar
  • 2,691
7 votes
2 answers
323 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 ...
Clement J.'s user avatar
6 votes
2 answers
259 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 ...
styts's user avatar
  • 175