Function validateTransfer

  • Validates a token transfer.

    Returns

    A promise that resolves to true if the transfer is valid.

    Throws

    If any token amount is not compatible with the token.

    Throws

    If the sender does not have enough tokens.

    Throws

    If the sender or receiver is not allowed to send/receive tokens.

    Throws

    If the token is paused.

    Parameters

    • token: Token

      The token to transfer.

    • sender: AccountAddress

      The account address of the sender.

    • payload: TokenTransfer | TokenTransfer[]

      The transfer payload.

    Returns Promise<true>

Generated using TypeDoc