GET/{network}/api/v1/users/{address}/total_surplus

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cowswap/{network}/api/v1/users/{address}/total_surplusCache cached 5s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Cumulative price-improvement surplus earned by a wallet address in native-token wei.

Try this endpoint

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cowswap/mainnet/api/v1/users/0x2712d97b92cd63d9c12986c663387544f816aad7/total_surplus"

Parameters

nameintypedescription
networkpathstrrequiredCoW Protocol network slug: mainnet, xdai, arbitrum_one, base, polygon, avalanche, bnb, linea, or sepolia (aliases such as ethereum, eth, gnosis, arbitrum, arb, bsc, or numeric chain IDs are normalized automatically).
example: mainnet
addresspathstrrequiredEVM wallet address.
example: 0x2712d97b92cd63d9c12986c663387544f816aad7

Response

type: object
pagination: none
sample: {
  "totalSurplus": "str"
}