Block Representation

Every token holder is assigned a unique block on the grid, representing their contribution to the network. The visual attributes of each block are determined by:

  • Block Size: Proportional to the number of tokens held by the wallet.

  • Block Color: Derived from a cryptographic hash of the wallet address, ensuring a unique color for each participant.

  • Color: Blocks are assigned colors using a hashing function:

python blockpooldesci color function 

import hashlib

def get_color_from_address(address: str) -> str:
    hash_value = int(hashlib.sha256(address.encode()).hexdigest(), 16)
    index = hash_value % len(gradient_colors)
    return gradient_colors[index]  # Returns the hex color

This ensures each block is visually distinct, creating a vibrant and dynamic grid.

Last updated