DustSweeper API [WIP]

Check open orders on DustSweeper

Get Wallet Information

GET https://dustsweeper.com/api/[address]

returns address, portfolio with token status, and past orders

Path Parameters

Name
Type
Description

address*

String

takes one ethereum address

{
  "address": "0x4bd75fd7b7417d56f7c7a527d60cddb380c4955a",
  "portfolio": [
    {
      "token": {
        "symbol": "USDT",
        "contract_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
        "status": "sweepable"//sweepable, approved, unsupported
      },
      "balance": {
        "amount": 103,
        "asset_type": "USDT",
        "usd_value": 103.06413,
        "eth_value": 0.05124258793437055
      },
      "quote_rate": 1.0006226,
      "last_transferred_at": "2022-05-09T00:44:54Z",
      "sweeping_value": { "usd": 72.144891, "eth": 0.03586981155405939 }
    },
    ...
  ],
  "past_orders": [
    {
      "blockNum": 14706660,
      "time": "2022-05-03T19:59:02Z",
      "erc20": {
        "symbol": "YFI",
        "address": "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e",
        "amount": "0.006"
      },
      "hash": "0x450da6ea901b0d5d48f5ce3aeae64f62a5978aa8bebe1af5e8b170e3d2f5e06d",
      "value": { "eth": "0.0261073722", "usd": 74.35802280915918 },
      "ethPrice": 2848.1619
    }...
  ]
}

Get All Orders:

GET https://dustsweeper.com/api/all-orders

returns an array of all orders

Get Open Orders:

GET https://dustsweeper.com/api/orders

returns an array of open orders

Last updated