---
title: "Get coin's sell args by contract address"
method: GET
path: "/v1/coins/sell/contract/{contractAddress}"
tags: ["coins"]
---

# Get coin's sell args by contract address

`GET /v1/coins/sell/contract/{contractAddress}`

## Request

- Base URL: `https://public.api.paragraph.com/api`
- URL: `https://public.api.paragraph.com/api/v1/coins/sell/contract/{contractAddress}`
- Auth: none required

Retrieve the args needed to sell a coin using a wallet that has it

## Path parameters

- `contractAddress` string, required

## Query parameters

- `walletAddress` string, required
- `amount` string, required

## Response `200`

Sell args retrieved successfully

- object
  - `commands` string, required: Commands needed to do a token swap
  - `inputs` string[], required: Inputs needed to do a token swap

## Other responses

- `404`: Sell args not found
- `500`: Internal server error

## Changes

- **2026-05-07** `90de04b87133`: 2 warning
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `error` from the response with the `500` status
- **2025-12-01** `846f8bdb0c4b`: 1 breaking, 2 info
  - removed the required property `args` from the response with the `200` status
  - added the required property `commands` to the response with the `200` status
  - added the required property `inputs` to the response with the `200` status
- **2025-11-26** `879ec5d028b0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/paragraph-xyz/apis/paragraph-api/changes/v1/coins/sell/contract/:contractAddress/get.md)

---

[API](https://skmtc.dev/paragraph-xyz/apis/paragraph-api.md) - [All operations](https://skmtc.dev/paragraph-xyz/apis/paragraph-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paragraph-xyz/apis/paragraph-api/revisions/c148c610fb95?raw)
