1 vote

Size of Big_map or Big_map is empty?

You can use this RPC endpoint to retrieve big_map size in bytes: /chains/main/blocks/${level}/context/raw/json/big_maps/index/${big_map_id}/total_bytes
user avatar
1 vote
Accepted

Size of Big_map or Big_map is empty?

No, it's not possible due to the way bigmaps are stored on-chain, so you can't know it by asking a node or within a smart contract, but indexers generally keep track of how many entries there are in a ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible