Questions tagged [bigmap]
The bigmap tag has no usage guidance.
26
questions
1
vote
1
answer
25
views
dump entire bigmap as key/value pairs
How to dump entire bigmap as key/value pairs?
Taquito "promises" Fetch multiple big map values at once but in reality multiple RPC calls are made.
1
vote
1
answer
31
views
How do I query a BigMap using Netezos?
I would like to query a BigMap using Netezos, for instance to get the only element of https://ghostnet.tzkt.io/KT1FpoA4yVSyRHwWzycRLXgbC7o8ecRsYz55/storage/254861
I'm guessing this page should help, ...
1
vote
1
answer
21
views
how do you find the action of a big map diff from RPC JSON?
on tzkt, the bigmap diffs have an action field which takes values like remove_key, add_key, update_key, etc.
the lazy_storage_diff field in RPC JSON doesn't seem to have these same values, instead it ...
0
votes
1
answer
43
views
What is the guideline on when you can and cannot use lazy entrypoints, and are there any limitations to using them?
My current understanding is that lazy entrypoints are stored in big_maps which impacts gas and improves performance of operations inside the entrypoint.
I also understand that there are limitations to ...
0
votes
2
answers
55
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
29
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
votes
1
answer
37
views
List inside of Map, or equivalent?
I want to have a list of data in a map so I can find it with the key which is associated with a user, but I get:
Error: Type Error sp.TIntOrNat is not sp.TList(sp.TUnknown()) bad type
for map value (...
1
vote
1
answer
77
views
Is it possible to get all big_map keys using node RPC?
Granada changelog mentions:
Added a new RPC to retrieve several Big Map values at once: /chains/<chain_id>/blocks/<block_id>/context/big_maps/<big_map_id>?offset=<int>&...
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
2
answers
204
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 ...
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
2
answers
154
views
What is script_expr?
The RPC for querying big maps mentions script_expr, but no where else in the Tezos Developer Documentation is it mentioned.
What is script_expr?
Where can developers learn more about it?
What ...
1
vote
1
answer
177
views
Can I iterate over a big_map using Taquito?
I have made a web interface for Tezos token interaction and now I would like to show a balance overview of the loaded tokens, i.e. show a list of address, account tuples . This requires me to be able ...
2
votes
2
answers
258
views
How to access Big Map value for a specific key
I am trying to access big_map data for a specific key, but I found that I need to provide the hash of the key to retrieve the data. Is there a way to get the hash for a key? Knowing the algorithm ...
2
votes
1
answer
84
views
Get number of entries in bigmap
I am currently writing tests for a contract and for one of those tests, I would like to get the number of entries in a bigmap field of the contract's storage. I am using JavaScript with Taquito and ...
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 = ...
3
votes
1
answer
55
views
Big maps in Zeronet
Is it true that in zeronet big maps are treated like regular maps?
Example:
https://rpc.tzkt.io/zeronet/chains/main/blocks/head/context/contracts/KT1JPvBo4Sv7n1WDzcKWEXTVRDU9HQhaZdzd
See no big map ...
4
votes
1
answer
514
views
How do I get the storage value of a bigmap using pair datatype as key with taquito library?
I am using the taquito library to interact with a smart contract that I have uploaded to carthagenet.
However, I am facing an issue in retrieving the value of a bigmap property in my smart contract ...
2
votes
2
answers
558
views
How to retrieve data from smart-contract using javascript?
I have stored data that I would like to retrieve from a deployed smart-contract.
The storage structure was defined using SmartPy:
def __init__(self):
self.init(bmap=sp.big_map(tkey=sp....
6
votes
1
answer
198
views
Relative gas cost of map vs bigmap
Does there exist a realistic performance benchmark between map/bigmap?
I am looking for a tipping point where it would make more sense to use a big map for gas cost optimization
1
vote
2
answers
146
views
How to total smartpy.TMutez type stored as values in smartpy.bigmap?
I have the following smartpy.bigmap in smart contract storage:
import smartpy as sp
self.data.init(bgmp=sp.bigmap(tkey=sp.TAddress,tvalue=sp.TMutez))
I would like to total all the stored tvalue so ...
2
votes
2
answers
174
views
How do you discover the indexes of the big maps of a contract?
How do you discover the indexes of the big maps of a contract? It seems you would have to inspect the storage, and correlate with the type of the storage, and pick out the numbers that correspond to ...
11
votes
2
answers
767
views
How to get big map value on Babylon
Babylon will have a new RPC to query big map value according to this link http://tezos.gitlab.io/babylonnet/api/rpc.html#get-block-id-context-big-maps-big-map-id-script-expr
I tried using it with a ...
2
votes
1
answer
329
views
How do I get the contents of a big_map through the RPC interface?
I'm trying to view the contents of a big_map in the storage of a smart contract. However, querying my Tezos node doesn't seem to provide that information. Is there a way of using the RPC interface to ...
4
votes
0
answers
74
views
Error too big to serialize within the provided gas bounds. Increasing the gas bounds does not help
I am developing a fairly large set of contracts that interact with each other. I wanted to reorganize and optimized the code and I've added lots of PUSH string "..."; FAILWITH to help me debug. I am ...
19
votes
1
answer
754
views
What is the BigMap container and why does it matter?
I have heard in many places that Tezos is making use of a specific kind of container called BigMap in order to store data inside a smart contract.
The object must be relatively complex because so far ...