Function validateSend

  • Check whether the sender can send funds controlled by the lock.

    Returns

    true if the sender can send funds controlled by the lock.

    Throws

    If the lock has expired.

    Throws

    If the sender does not have the send capability for a simpleV0 lock controller.

    Throws

    If the recipient is not configured on the lock.

    Throws

    If the source account does not have enough of the token locked in the lock.

    For unknown controller variants, the capability check is skipped.

    Parameters

    • lock: Lock

      The lock to validate against.

    • sender: AccountAddress

      The sender account to validate.

    • details: SendDetails

      The send operation details, used to validate the locked amount on the source account.

    Returns true

Generated using TypeDoc