# MSO

MSO - Medical Second Opinion. Cover Compared had partnered with Wishing Well Corp to enable users to buy MSO via crypto

### Buy Product by ETH

To buy an MSO product using ETH the user will call the  `buyProductByETH` function.

```c
    function buyProductByETH(
        string memory productName,
        uint256 priceInUSD,
        uint256 period,
        uint256 conciergePrice,
        bytes memory sig
    ) 
```

#### Input variables :&#x20;

* productName : refers to the name of the insurance product being bought
* priceInUSD : refers to the price of the product in USD
* period : refers to the duration for which the cover is being bought
* conciergePrice : refers to the price of an added service offered by MSO
* sig :  refers to the signature signed by CoverCompared to authenticate/validate the transaction and price

### Buy Product by Token

To buy an MSO product using a supported ERC20 the user will call the  `buyProductByToken` function.

```c
    function buyProductByToken(
        string memory productName,
        uint256 priceInUSD,
        uint256 period,
        address _token,
        address _sender,
        uint256 conciergePrice,
        bytes memory sig
    )
```

#### Input variables :&#x20;

* productName : refers to the name of the insurance product being bought
* priceInUSD : refers to the price of the product in USD
* period : refers to the duration for which the cover is being bought
* \_token : refers to the ERC20 token address in which the payment is being made
* \_sender : refers to the sender
* conciergePrice : refers to the price of an added service offered by MSO
* sig :  refers to the signature signed by CoverCompared to authenticate/validate the transaction and price


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www-covercompared.gitbook.io/docs/covercompared-dapp/contemporary-covers/mso.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
