{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kryptos-io/json-schema/kryptos-io-get-v1-transactions-response-schema.json",
  "title": "GetV1TransactionsResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/kryptos-io-api-openapi-generated.yml#/components/schemas/GetV1TransactionsResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "workspaceId": {
      "type": "string"
    },
    "transactionPlatformId": {
      "type": "string"
    },
    "timestamp": {
      "type": "integer"
    },
    "type": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "importSource": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "importedAt": {
          "type": "integer"
        },
        "walletId": {
          "type": "string"
        },
        "syncId": {
          "type": "string"
        },
        "functionName": {
          "type": "string"
        }
      }
    },
    "isManual": {
      "type": "boolean"
    },
    "isEdited": {
      "type": "boolean"
    },
    "isDefiTrx": {
      "type": "boolean"
    },
    "isNFTTrx": {
      "type": "boolean"
    },
    "isMissingTransaction": {
      "type": "boolean"
    },
    "protocol": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {}
    },
    "comments": {
      "type": "array",
      "items": {}
    },
    "netValue": {
      "type": "object",
      "properties": {
        "fiatValue": {
          "type": "integer"
        },
        "currency": {
          "type": "string"
        }
      }
    },
    "totalCostbasis": {
      "type": "integer"
    },
    "totalGains": {
      "type": "integer"
    },
    "explorerLink": {
      "type": "string"
    },
    "incomingAssets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "assetId": {
            "type": "string"
          },
          "assetRaw": {
            "type": "object",
            "properties": {
              "symbol": {
                "type": "string"
              }
            }
          },
          "quantity": {
            "type": "string"
          },
          "baseCurrency": {
            "type": "string"
          },
          "price": {
            "type": "object",
            "properties": {
              "price": {
                "type": "integer"
              },
              "baseCurrency": {
                "type": "string"
              },
              "timestamp": {
                "type": "integer"
              },
              "source": {
                "type": "string"
              }
            }
          },
          "value": {
            "type": "integer"
          },
          "fromAccount": {
            "type": [
              "string",
              "null"
            ]
          },
          "toAccount": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "walletId": {
                "type": "string"
              }
            }
          },
          "label": {
            "type": "string"
          },
          "asset": {
            "type": "object",
            "properties": {
              "symbol": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "logoUrl": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "outgoingAssets": {
      "type": "array",
      "items": {}
    },
    "fee": {
      "type": "array",
      "items": {}
    }
  }
}