> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/marketsellasset | TRON

> TRON API method that creates a transaction to place a sell order on the TRON DEX marketplace. wallet/marketsellasset on TRON via Chainstack.

TRON API method that creates a transaction to place a sell order on the TRON DEX marketplace. This allows users to offer their tokens for sale at a specified price, creating liquidity in the order book.

## Parameters

* `owner_address` — hexadecimal address of the account placing the sell order
* `sell_token_id` — token ID being sold (use empty string for TRX)
* `sell_token_quantity` — quantity of tokens to sell
* `buy_token_id` — token ID desired in exchange (use empty string for TRX)
* `buy_token_quantity` — quantity of tokens desired in exchange

## Response

* `visible` — boolean indicating whether addresses are in visible format
* `txID` — unique transaction ID for the sell order transaction
* `raw_data` — raw transaction data containing:
  * `contract` — array with market sell order contract details
  * `ref_block_bytes` — reference block bytes for transaction validation
  * `ref_block_hash` — hash of the reference block
  * `expiration` — transaction expiration timestamp
  * `timestamp` — transaction creation timestamp
* `raw_data_hex` — complete transaction data encoded in hexadecimal format

## Use case

The `wallet/marketsellasset` method is used for:

* Creating sell orders to exchange tokens at desired prices.
* Providing liquidity to the TRON DEX marketplace.
* Implementing automated trading strategies and market making.
* Converting between TRX and TRC-10 tokens through decentralized trading.
* Building custom trading interfaces and portfolio management tools.

<Note>
  The sell order will lock the specified tokens in the order until it's filled or canceled. The price is determined by the ratio between sell\_token\_quantity and buy\_token\_quantity. Use empty strings for token IDs when referring to TRX in the trading pair.
</Note>


## OpenAPI

````yaml openapi/tron_node_api/marketsellasset.json post /95e61622bf6a8af293978377718e3b77/wallet/marketsellasset
openapi: 3.0.0
info:
  title: wallet/marketsellasset TRON API
  version: 1.0.0
  description: Create market sell order
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/marketsellasset:
    post:
      tags:
        - Market and DEX
      summary: wallet/marketsellasset
      operationId: marketSellAsset
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                owner_address:
                  type: string
                  description: Account address placing the sell order
                sell_token_id:
                  type: string
                  description: Token ID being sold (empty string for TRX)
                sell_token_quantity:
                  type: integer
                  description: >-
                    Quantity of tokens to sell (integer in token base units; if
                    TRX, sun)
                buy_token_id:
                  type: string
                  description: Token ID desired in exchange (empty string for TRX)
                buy_token_quantity:
                  type: integer
                  description: >-
                    Quantity of tokens desired in exchange (integer in token
                    base units; if TRX, sun)
                visible:
                  type: boolean
                  description: When true, addresses are base58; when false, hex.
                  default: true
              required:
                - owner_address
                - sell_token_id
                - sell_token_quantity
                - buy_token_id
                - buy_token_quantity
              example:
                owner_address: THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC
                sell_token_id: '1000006'
                sell_token_quantity: 1000000
                buy_token_id: '1002000'
                buy_token_quantity: 1000000
                visible: true
      responses:
        '200':
          description: Market sell order transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  visible:
                    type: boolean
                    description: Whether addresses are in visible format
                  txID:
                    type: string
                    description: Transaction ID for sell order
                  raw_data:
                    type: object
                    properties:
                      contract:
                        type: array
                        description: Contract details for market sell order
                      ref_block_bytes:
                        type: string
                        description: Reference block bytes
                      ref_block_hash:
                        type: string
                        description: Reference block hash
                      expiration:
                        type: number
                        description: Transaction expiration timestamp
                      timestamp:
                        type: number
                        description: Transaction creation timestamp
                  raw_data_hex:
                    type: string
                    description: Raw transaction data in hex format

````