Function useCancelEnglishAuction

  • Cancel an english auction

    Parameters

    • contract: RequiredParam<MarketplaceV3>

      an instance of a Marketplace v3 contract

    Returns UseMutationResult<Omit<{
        data: (() => Promise<unknown>);
        receipt: providers.TransactionReceipt;
    }, "data">, unknown, BigNumberish, unknown>

    a mutation object that can be used to cancel an english auction

    Example

    const Component = () => {
    const { contract } = useContract("{{contract_address}}");
    const {
    mutate: cancelEnglishAuction,
    isLoading,
    error,
    } = useCancelEnglishAuction(contract);

    if (error) {
    console.error("failed to cancel english auction", error);
    }

    return (
    <button
    disabled={isLoading}
    onClick={cancelEnglishAuction}
    >
    Cancel English Auction
    </button>
    );
    };

    Twfeature

    EnglishAuctions

    See

    Documentation

Generated using TypeDoc