GET/market/get-token-restrictions/{chainId}/{tokenAddress}/

Claude ↗ChatGPT ↗
Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cowswap/market/get-token-restrictions/{chainId}/{tokenAddress}/Cache cached 5s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Jurisdictional trading restriction status for a token and ISO country code.

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/market/get-token-restrictions/1/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/?countryCode=US"

Parameters

nameintypedescription
chainIdpathstrrequiredEVM numeric chain ID: 1 (Ethereum), 100 (Gnosis), 42161 (Arbitrum), 8453 (Base), 137 (Polygon), 43114 (Avalanche), 56 (BNB), 59144 (Linea), or 11155111 (Sepolia). Chain slugs are also accepted.
example: 1
tokenAddresspathstrrequiredERC-20 token contract address.
example: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
countryCodequerystrrequiredTwo-letter ISO 3166-1 alpha-2 country code.
default: US
example: US

Response

type: object
pagination: none
sample: {
  "restricted": "bool"
}