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

# Get coin's buy args by ID

`GET /v1/coins/buy/{id}`

Retrieve the args needed to buy a coin using a wallet

## Path parameters

- `id` 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

---

[API](https://skmtc.net/paragraph-xyz/apis/paragraph-api.md) · [All operations](https://skmtc.net/paragraph-xyz/apis/paragraph-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paragraph-xyz/paragraph-api/versions/7bbf1b62c1a0/schema)
