coins

Get coin's sell args by contract address

Changed on

Retrieve the args needed to sell a coin using a wallet that has it

get/v1/coins/sell/contract/{contractAddress}

Request

  • Base URL
    https://public.api.paragraph.com/api
  • URL
    https://public.api.paragraph.com/api/v1/coins/sell/contract/{contractAddress}
  • Auth
    none required

Path parameters

contractAddressstring required

Contract address of the coin

Query parameters

walletAddressstring required

Address of the wallet that is going to sell the coin

amountstring required

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

Response

Sell args retrieved successfully

commandsstring required

Commands needed to do a token swap

inputsstring[] required

Inputs needed to do a token swap

Changes

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status