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

    Class MsgTransferTokens<T>

    MsgTransferTokens represents a message to transfer tokens from one user to another. For a transfer to be successful, the transfer has to satisfy the following conditions:

    • Be approved on the collection level
    • Be approved by the recipient's incoming transfers (if not forcefully overriden by the collection)
    • Be approved by the sender's outgoing transfers (if not forcefully overriden by the collection)
    • The sender must have enough tokens to transfer
    • All restrictions and challenges for each approval must be satisfied (merkle challenges, approved amounts, max num transfers, ...)

    Note that the transfer transaction is atomic, meaning that either all transfers succeed or all fail.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    collectionId: string

    The ID of the collection to transfer tokens from.

    creator: string

    The creator of the transaction.

    transfers: Transfer<T>[]

    The transfers to perform.

    Methods