GET
/
dex
/
{protocolId}
/
wallets
/
{walletAddress}
Wallet Lens
curl --request GET \
  --url https://api.amberdata.com/defi/dex/{protocolId}/wallets/{walletAddress} \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "next": "https://api.amberdata.com/defi/dex/uniswapv3/wallets/0x7ff28d78bffb7b571db98ea48e7a77128bac8456?timeFormat=humanReadable&startDate=1663200000000&endDate=1663804800000&size=3&page=1"
    },
    "data": [
      {
        "blockNumber": 15539077,
        "transactionHash": "0xe8cd873d7388e22bd7fdb8cc4c33908a9cab78902e002dc1cd04632bdc26ec6b",
        "logIndex": 163,
        "timestamp": "2022-09-15 12:24:23 000",
        "poolAddress": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
        "event": "Swap(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)",
        "action": "Swap",
        "walletAddress": "0x7ff28d78bffb7b571db98ea48e7a77128bac8456",
        "tick": "202616",
        "sender": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
        "amount0": "2000000000",
        "amount1": "-1258574411698918496",
        "liquidity": "12803597731439531738",
        "recipient": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
        "sqrtPriceX96": "1987978965537749775597908456194656",
        "amount0Normalized": "2000.0000000",
        "amount1Normalized": "-1.2585744116989184960",
        "token0Address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "token1Address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

protocolId
enum<string>
default:uniswapv3
required
Available options:
uniswapv2,
uniswapv3,
sushiswap,
curve
walletAddress
string
default:0x7ff28d78bffb7b571db98ea48e7a77128bac8456
required

The wallet address

Query Parameters

startDate
string<date-time>
default:1663286400000

[Optional] Payload only includes data after this date (inclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string<date-time>
default:1664496000000

[Optional] Payload only includes data before this date (exclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

size
integer

[Optional] Number of records per page. Defaults to 100 if not specified. Maximum is 1000.

timeFormat
enum<string>

[Optional] Time format of the timestamps in the return payload.<BR/>

Available options:
milliseconds,
ms,
iso,
iso8601,
hr,
human_readable
action
enum<string>

[Optional] Filter by action

Available options:
Swap,
AddLiquidity,
RemoveLiquidity,
Collect

Response

200 - application/json

200

The response is of type object.