{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chainflip-broker-io/json-schema/chainflip-broker-io-chainflip-baas-assets-assets-response-schema.json",
  "title": "ChainflipBaas.Assets.AssetsResponse",
  "description": "The assets you can swap, ordered by id.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chainflip-broker-io-assets-api-openapi.yml#/components/schemas/ChainflipBaas.Assets.AssetsResponse",
  "type": "object",
  "properties": {
    "assets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChainflipBaas.Assets.AssetInfo"
      },
      "description": "All available assets.",
      "readOnly": true
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ChainflipBaas.Assets.AssetInfo": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Is the asset available for swapping or not?"
        },
        "id": {
          "type": "string",
          "description": "The asset id, `ticker.network`: what you pass as `sourceAsset` or `destinationAsset` on every\nother endpoint."
        },
        "direction": {
          "enum": [
            "ingress",
            "egress",
            "both"
          ],
          "type": "string",
          "description": "Direction an asset can be used in. Ingress assets can only be used to swap from. Egress assets can only be used to swap to. Assets with both can be used to swap from and to.",
          "x-ms-enum": {
            "name": "AssetDirection",
            "modelAsString": true
          }
        },
        "ticker": {
          "type": "string",
          "description": "Display ticker of the asset."
        },
        "name": {
          "type": "string",
          "description": "Descriptive name of the asset."
        },
        "network": {
          "type": "string",
          "description": "Name of the network where the asset is located."
        },
        "contractAddress": {
          "type": [
            "string",
            "null"
          ],
          "description": "The contract address for tokens which have one."
        },
        "networkLogo": {
          "type": "string",
          "description": "A url to the logo for the network.",
          "readOnly": true
        },
        "assetLogo": {
          "type": "string",
          "description": "A url to the logo for the asset.",
          "readOnly": true
        },
        "decimals": {
          "type": "integer",
          "description": "Number of decimals the asset native value contains.",
          "format": "int32"
        },
        "minimalAmount": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum amount required to swap the asset.",
          "format": "double",
          "readOnly": true
        },
        "minimalAmountNative": {
          "type": [
            "string",
            "null"
          ],
          "description": "Minimum amount in native units required to swap the asset.",
          "readOnly": true
        },
        "usdPrice": {
          "type": [
            "number",
            "null"
          ],
          "description": "Current pool price of the asset in USDC.",
          "format": "double",
          "readOnly": true
        },
        "usdPriceNative": {
          "type": [
            "string",
            "null"
          ],
          "description": "Current pool price of the asset in USDC native units.",
          "readOnly": true
        },
        "platforms": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The providers that support this asset. Pass one as `platform` to `startSwap`.",
          "readOnly": true
        }
      },
      "additionalProperties": false,
      "description": "An asset you can swap: its id, network, decimals, minimum swap amount and current USD price."
    }
  }
}