Questions tagged [bigmap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 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 ...
user avatar
  • 347
1 vote
2 answers
40 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
  • 347
0 votes
1 answer
18 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
0 votes
1 answer
30 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 (...
user avatar
1 vote
1 answer
60 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>&...
user avatar
1 vote
2 answers
117 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
2 answers
135 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
0 votes
1 answer
41 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
  • 670
0 votes
2 answers
116 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 ...
user avatar
  • 670
1 vote
1 answer
145 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 ...
user avatar
2 votes
2 answers
212 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 ...
user avatar
2 votes
1 answer
71 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 ...
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
3 votes
1 answer
54 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 ...
user avatar
4 votes
1 answer
428 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 ...
user avatar
  • 55
2 votes
2 answers
475 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....
user avatar
6 votes
1 answer
181 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
user avatar
  • 6,006
1 vote
2 answers
117 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 ...
user avatar
2 votes
2 answers
150 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 ...
user avatar
  • 2,348
11 votes
2 answers
699 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 ...
user avatar
2 votes
1 answer
276 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 ...
user avatar
4 votes
0 answers
73 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 ...
user avatar
  • 670
17 votes
1 answer
709 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 ...
user avatar
  • 6,006