# Sell Now Module

<figure><img src="/files/Qq4JaYP4OPLG7AyyjEn4" alt=""><figcaption><p>Sell flow</p></figcaption></figure>

## Types

### Signature

```typescript
export type Signature = {
  data: object
  signature: { v: number; r: string; s: string; deadline: number }
}

/* data object
interface SignSellNow {
  loan: SignLoanConfig;
  assetId: string;
  marketAdapter: string;
  marketApproval: string;
  marketPrice: BigInt;
  underlyingAsset: string;
  from: string;
  to: string;
  data: string;
  value: BigInt;
  nonce: BigInt;
  deadline: BigInt;
}

interface SignLoanConfig {
  loanId: string;
  aggLoanPrice: BigInt;
  aggLtv: BigInt;
  aggLiquidationThreshold: BigInt;
  totalAssets: BigInt;
  nonce: BigInt;
  deadline: BigInt;
}
*/
```

### ClientOptions

```typescript
export type ClientOptions = {
  network?: Chain
}

export type Chain = 'mainnet' | 'sepolia' | 'localhost'
```

## Functions

### Selling an Asset

To sell an asset instantly, use the `sell` function from the `sellNow` module:

```typescript
export const sell = async (
        asset: Nft, 
        signature: Signature, 
        options?: ClientOptions
    )
```

```typescript
const result = await sell(asset, signature, options?);
```

Refer to the Sell Now Module documentation for more details on the `sell` function.


---

# 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://sdk.unlockd.finance/getting-started/sdk-modules/sell-now-module.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.
