Uniswap · Schema
GetSwappableTokensResponse
GetSwappableTokensResponse schema from Uniswap Trading API
BlockchainCryptocurrencyDeFiDecentralized ExchangeLiquiditySwaps
Properties
| Name | Type | Description |
|---|---|---|
| requestId | object | |
| tokens | array |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/uniswap/refs/heads/main/json-schema/uniswap-get-swappable-tokens-response-schema.json",
"title": "GetSwappableTokensResponse",
"description": "GetSwappableTokensResponse schema from Uniswap Trading API",
"type": "object",
"properties": {
"requestId": {
"$ref": "#/components/schemas/RequestId"
},
"tokens": {
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"$ref": "#/components/schemas/Address"
},
"chainId": {
"$ref": "#/components/schemas/ChainId"
},
"name": {
"type": "string",
"description": "The name of the token."
},
"symbol": {
"$ref": "#/components/schemas/tokenSymbol"
},
"project": {
"$ref": "#/components/schemas/TokenProject"
},
"isSpam": {
"$ref": "#/components/schemas/isSpam"
},
"decimals": {
"type": "number",
"description": "The number of decimals supported by the token. This number is used to convert token amounts to the token's common representation."
}
},
"required": [
"address",
"chainId",
"name",
"symbol",
"project",
"decimals"
]
}
}
},
"required": [
"requestId",
"tokens"
]
}