ao-js-sdk - v0.2.11
    Preparing search index...

    Interface ITokenConversionsService

    Interface for token conversion services that handle converting token balances.

    interface ITokenConversionsService {
        convert(
            tokenBalance: ITokenBalance,
            tokenProcessId: string,
        ): Promise<ITokenBalance>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Converts a token balance using the specified token process ID.

      Parameters

      • tokenBalance: ITokenBalance

        The token balance to convert

      • tokenProcessId: string

        The process ID of the target token

      Returns Promise<ITokenBalance>

      Promise that resolves to the converted token balance