Function extractSourceOutputTokenData

  • Given the resolved list of a transaction's source outputs – the Unspent Transaction Outputs (UTXOs) spent by the transaction, extract all token data for token-aware validation. See CHIP-2022-02-CashTokens for details.

    Parameters

    • sourceOutputs: Output[]

      a list of resolved source outputs (UTXOs)

    Returns {
        availableImmutableTokens: ImmutableToken[];
        availableMutableTokensByCategory: MutableTokensByCategory;
        availableSumsByCategory: FungibleTokensByCategory;
        inputMintingCategories: string[];
    }

    an object containing availableImmutableTokens, availableMutableTokensByCategory, availableSumsByCategory, and inputMintingCategories. See CHIP-2022-02-CashTokens for details.

    • availableImmutableTokens: ImmutableToken[]
    • availableMutableTokensByCategory: MutableTokensByCategory
    • availableSumsByCategory: FungibleTokensByCategory
    • inputMintingCategories: string[]

Generated using TypeDoc