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

Path Parameters

contractAddress
string
required

Contract address of the coin

Query Parameters

walletAddress
string
required

Address of the wallet that is going to buy the coin

amount
string
required

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

Response

Buy args retrieved successfully

commands
string
required

Commands needed to do a token swap

inputs
string[]
required

Inputs needed to do a token swap