Questions tagged [storage]
The storage tag has no usage guidance.
54
questions
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/...
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 ...
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 ...
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 ...
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?
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 ...
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 %...
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 ...
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 ...
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;
...
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))
...
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 ...
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)...
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 ...
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 (...
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 ...
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 ...
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 ...
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/...
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, ...
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 ...
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 ...
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?
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ....
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?
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?
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):
...
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 ...
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 {} "...
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?
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 ...
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.
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 = ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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/...
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 ...
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 ...