Skip to main content
GET
/
v1
/
coins
/
buy
/
{id}
Get coin's buy args by ID
curl --request GET \
  --url https://public.api.paragraph.com/api/v1/coins/buy/{id}
{
  "commands": "<string>",
  "inputs": [
    "<string>"
  ]
}

Path Parameters

id
string
required

Id of the coin

Query Parameters

walletAddress
string
required

Address of the wallet that is going to buy the coin

Pattern: ^0x[a-fA-F0-9]{40}$
amount
string
required

Amount of Base ETH in wei that is going to be swapped for the coin

Pattern: [0-9]+

Response

Buy args retrieved successfully

commands
string
required

Commands needed to do a token swap

Pattern: ^0x[a-fA-F0-9]*
inputs
string[]
required

Inputs needed to do a token swap

Pattern: ^0x[a-fA-F0-9]*