Questions tagged [bigmap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 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
2answers
35 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
1answer
57 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
2answers
90 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
1answer
33 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
1answer
44 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
1answer
48 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
1answer
136 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 ...
1
vote
2answers
184 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
1answer
117 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
2answers
52 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
2answers
65 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
2answers
457 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
1answer
156 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
0answers
58 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 ...
16
votes
1answer
410 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 ...