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

# Get coin's buy args by contract address

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

Retrieve the args needed to buy a coin using a wallet

## Path parameters

- `contractAddress` string, required

## Query parameters

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

## Response `200`

Buy 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` — Buy 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

[Change history](https://skmtc.dev/paragraph-xyz/apis/paragraph-api/changes/v1/coins/buy/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)
