bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class Balance

    Balance represents the balance of a token for a specific user. The user amounts xAmount of a token specified for the time ranges specified.

    Example: User A owns x10 of token IDs 1-10 from 1/1/2020 to 1/1/2021.

    If times or tokenIDs have len > 1, then the user owns all token IDs specified for all time ranges specified.

    from message badges.Balance

    Hierarchy

    Index

    Constructors

    Properties

    amount: string = ""

    The amount of the token owned by the user.

    from field: string amount = 1;

    ownershipTimes: badges.UintRange[] = []

    The time ranges during which the user owns the token.

    from field: repeated badges.UintRange ownershipTimes = 2;

    tokenIds: badges.UintRange[] = []

    The token IDs for which the user owns the token.

    from field: repeated badges.UintRange tokenIds = 3;

    fields: FieldList = ...
    runtime: ProtoRuntime = proto3
    typeName: "badges.Balance"

    Methods