Questions tagged [bigmap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
17
votes
1answer
604 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 ...
11
votes
2answers
595 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 ...
6
votes
1answer
159 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
5
votes
1answer
47 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 = ...
4
votes
1answer
276 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 ...
4
votes
0answers
71 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 ...
3
votes
1answer
53 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 ...
2
votes
2answers
352 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....
2
votes
2answers
105 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 ...
2
votes
1answer
220 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 ...
2
votes
1answer
53 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 ...
2
votes
2answers
170 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 ...
1
vote
2answers
82 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
1answer
100 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 ...
1
vote
2answers
86 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 ...
1
vote
1answer
42 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
2answers
86 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
2answers
98 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 ...
0
votes
1answer
26 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 ....