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

Path Parameters

contractAddress
string
required

Contract address of the coin

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

Query Parameters

walletAddress
string
required

Address of the wallet that is going to sell the coin

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

Amount of coin in wei that is going to be swapped to WETH

Pattern: [0-9]+

Response

Sell 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]*