Sell Now Module

The Sell Now module allows you to sell assets instantly at a fixed price.



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;


export type ClientOptions = {
  network?: Chain

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


Selling an Asset

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

export const sell = async (
        asset: Nft, 
        signature: Signature, 
        options?: ClientOptions
const result = await sell(asset, signature, options?);

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

Last updated