{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/laso-finance/json-schema/laso-finance-withdrawal-status-schema.json",
  "title": "WithdrawalStatus",
  "description": "A withdrawal status record.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/laso-finance-openapi.json#/components/schemas/WithdrawalStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "amount": {
      "type": "number"
    },
    "asset": {
      "type": "string"
    },
    "network": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "address": {
      "type": "string",
      "description": "The wallet address the withdrawal is sent to"
    },
    "timestamp": {
      "type": "number"
    },
    "timestamp_readable": {
      "type": "string"
    },
    "tx_hash": {
      "type": "string",
      "description": "On-chain transaction hash, present once the withdrawal is processed"
    },
    "tx_url": {
      "type": "string",
      "description": "Block explorer URL for the transaction, present when tx_hash exists"
    },
    "cancel_reason": {
      "type": "string",
      "enum": [
        "stellar-usdc-trustline-missing"
      ],
      "description": "Present when the withdrawal was cancelled automatically. The full amount was returned to the account balance. `stellar-usdc-trustline-missing`: the destination Stellar wallet has no USDC trustline; add one and withdraw again."
    },
    "help_url": {
      "type": "string",
      "description": "Article explaining how to fix the cause in `cancel_reason`, when one exists."
    }
  }
}