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

    Class AddressList

    AddressLists represent a list of addresses, identified by a unique ID.

    Some list IDs are reserved and auto generated by the blockchain. Otherwise, the list can be created on-chain via MsgCreateAddressLists.

    For the BitBadges indexer / API, we also allow users to create off-chain lists hosted in a centralized manner.

    On-chain lists are stored on the blockchain, are permanent, non editable, non deletable, and can be used for defining permissions and approvals. Off-chain lists are stored off-chain, are mutable, and can be edited / deleted at any time by the creator.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    addresses: string[]

    The addresses of the address list. If this is a tracker list, the addresses are the tracker IDs.

    createdBy?: string

    The address that created the address list. Handled internally.

    customData: string

    Arbitrary custom data that can be stored. Leave blank for no custom data.

    listId: string

    The ID of the address list.

    uri: string

    The URI where to fetch the address list metadata from.

    whitelist: boolean

    Whether or not to include ONLY the addresses or include all EXCEPT the addresses.

    Methods

    • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

      If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

      Type Parameters

      Parameters

      • other: undefined | null | CustomType<U>
      • OptionalnormalizeNumberTypes: boolean

      Returns boolean