---
updatedAt: 2026-06-02T20:06:00.000Z
agentTools:
  projectIndex: https://docs.zerohash.com/llms.txt
---

# Get withdrawal quote

Returns a locked network fee quote for a planned crypto withdrawal. The returned `withdrawal_quote_id` is valid for 30 seconds and must be passed to POST /withdrawals/execute to complete the withdrawal. Exactly one of `withdrawal_account_id` or `withdrawal_address` must be supplied; if `max_amount` is `false` (the default), `amount` is required. Fee denomination, since the key names do not make it obvious: `network_fee`, `withdrawal_fee` and the `net_withdrawal_*` amounts are all denominated in `asset`. `network_fee_asset` is the asset the blockchain charged, which for a token withdrawal is the native coin of the chain, and it labels `network_fee_native_amount` — not `network_fee`, which has already been converted into `asset`. The `*_notional` values are denominated in their matching `*_notional_currency`, always `USD`.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "zerohash API",
    "description": "\n### Authentication\n\nzerohash Uses HMAC SHA-256 verification to ensure the authenticity of API requests, follow instructions by link [https://docs.zerohash.com/reference/api-authentication](https://docs.zerohash.com/reference/api-authentication)\n\n<a href=\"/zh-swagger.json\">Download zerohash OpenAPI Schema as JSON</a>\n",
    "version": "1.7.0"
  },
  "servers": [
    {
      "url": "https://api.cert.zerohash.com",
      "description": "Certification API server"
    }
  ],
  "x-readme": {
    "proxy-enabled": false
  },
  "tags": [
    {
      "name": "Withdrawals",
      "description": "Initiate and monitor withdrawals from accounts"
    }
  ],
  "paths": {
    "/withdrawals/locked_network_fee": {
      "get": {
        "tags": [
          "Withdrawals"
        ],
        "summary": "Get withdrawal quote",
        "description": "Returns a locked network fee quote for a planned crypto withdrawal. The returned `withdrawal_quote_id` is valid for 30 seconds and must be passed to POST /withdrawals/execute to complete the withdrawal. Exactly one of `withdrawal_account_id` or `withdrawal_address` must be supplied; if `max_amount` is `false` (the default), `amount` is required. Fee denomination, since the key names do not make it obvious: `network_fee`, `withdrawal_fee` and the `net_withdrawal_*` amounts are all denominated in `asset`. `network_fee_asset` is the asset the blockchain charged, which for a token withdrawal is the native coin of the chain, and it labels `network_fee_native_amount` — not `network_fee`, which has already been converted into `asset`. The `*_notional` values are denominated in their matching `*_notional_currency`, always `USD`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Signature"
          },
          {
            "$ref": "#/components/parameters/Timestamp"
          },
          {
            "name": "participant_code",
            "in": "query",
            "description": "The participant the withdrawal will be debited from. 6-character alphanumeric code.",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 6,
              "maxLength": 6
            }
          },
          {
            "name": "account_group",
            "in": "query",
            "description": "The `account_group` for the source account. Defaults to the caller's `participant_code` when omitted.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "account_label",
            "in": "query",
            "description": "The `account_label` for the source account. Defaults to `general` when omitted.",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 50
            }
          },
          {
            "name": "asset",
            "in": "query",
            "description": "The asset code of the asset being withdrawn, e.g. BTC.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "description": "The requested withdrawal amount. Required (and must be positive) unless `max_amount` is `true`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "max_amount",
            "in": "query",
            "description": "When `true`, zerohash will generate a withdrawal for the full available balance of `asset` in the source account; in that case `amount` can be omitted. Defaults to `false`. Accepted as the string `\"true\"` or `\"false\"`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "withdrawal_account_id",
            "in": "query",
            "description": "The `withdrawal_account_id` of the whitelisted destination account. Required when `withdrawal_address` is not provided.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "withdrawal_address",
            "in": "query",
            "description": "The on-chain address that will receive the crypto asset. Required when `withdrawal_account_id` is not provided.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "destination_tag",
            "in": "query",
            "description": "The destination tag or memo ID associated with the transaction. Required when the asset is EOS, XLM, or XRP and `no_destination_tag` is `false`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "no_destination_tag",
            "in": "query",
            "description": "Whether the destination address requires a destination tag. Required for tag-based assets (EOS, XLM, XRP). zerohash requires `no_destination_tag` to be `false` for EOS. Accepted as the string `\"true\"` or `\"false\"`.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fee quote locked and returned, OR — EU deployments only — a Travel Rule pre-check discriminator when the address is not yet cleared. Discriminator shape: `{ message: { travel_rule: { account_status } } }` where `account_status` is `action_required`, `processing`, `blocked`, or `unknown`.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/GetLockedNetworkFeeResponse"
                    },
                    {
                      "$ref": "#/components/schemas/TravelRuleGateBody"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code400"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code403"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code404"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Code500"
                }
              }
            }
          },
          "503": {
            "description": "Travel Rule query service unavailable. The fee lock was not performed. Retry after a short delay.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKey": [],
      "apiPassphrase": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "description": "Your API public key. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for how to obtain keys.",
        "in": "header",
        "name": "X-SCX-API-KEY"
      },
      "apiPassphrase": {
        "type": "apiKey",
        "description": "The passphrase associated with your API key, set when the key was created.",
        "in": "header",
        "name": "X-SCX-PASSPHRASE"
      }
    },
    "parameters": {
      "Signature": {
        "name": "X-SCX-SIGNED",
        "in": "header",
        "description": "HMAC-SHA256 signature of the request, base64-encoded. See the [Authentication guide](https://docs.zerohash.com/reference/api-authentication) for the exact signing formula.",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "Timestamp": {
        "name": "X-SCX-TIMESTAMP",
        "in": "header",
        "description": "Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.",
        "required": true,
        "schema": {
          "type": "string",
          "example": "1678901234"
        }
      }
    },
    "schemas": {
      "Code400": {
        "type": "object",
        "description": "Request was rejected by validation or a downstream service. `errors` is an array of human-readable messages; each entry describes a single validation failure or business-rule violation.",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "body/amount must be >= 0",
              "body/asset is required"
            ]
          }
        }
      },
      "Code403": {
        "type": "object",
        "description": "Authentication or authorization failed. `error` is always `true`; `message` explains which check failed (missing API key, bad signature, insufficient permission, etc.).",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "boolean",
            "example": true
          },
          "message": {
            "type": "string",
            "example": "This api key does not have write permission to this endpoint"
          }
        }
      },
      "Code404": {
        "type": "object",
        "description": "The requested resource does not exist or is not visible to the caller.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Not Found"
          }
        }
      },
      "Code500": {
        "type": "object",
        "description": "An unexpected error occurred on the server. The request can be retried after a short delay, but the same inputs may reproduce the error.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "LockedNetworkFeeEntity": {
        "type": "object",
        "description": "Locked network fee quote returned by GET /withdrawals/locked_network_fee. The quote is valid for 30 seconds and must be referenced by `withdrawal_quote_id` when calling POST /withdrawals/execute.",
        "properties": {
          "participant_code": {
            "type": "string",
            "description": "The participant the withdrawal will be debited from.",
            "example": "ABCDEF"
          },
          "account_group": {
            "type": "string",
            "description": "The `account_group` for the source account the withdrawal will be debited from.",
            "example": "JMCH0H"
          },
          "account_label": {
            "type": "string",
            "description": "The `account_label` for the source account the withdrawal will be debited from.",
            "example": "general"
          },
          "asset": {
            "type": "string",
            "description": "The asset being withdrawn.",
            "example": "USDT.ETH"
          },
          "amount": {
            "type": "string",
            "description": "The amount requested for the withdrawal.",
            "example": "0.04867615"
          },
          "max_amount": {
            "type": "boolean",
            "description": "When `true`, the quote was generated for the full available balance of `asset` in the source account rather than a specific `amount`. Defaults to `false`.",
            "example": false
          },
          "withdrawal_account_id": {
            "type": "string",
            "description": "The whitelisted withdrawal account identifier associated with the destination address. Empty string when the quote was requested by raw `withdrawal_address`.",
            "example": ""
          },
          "withdrawal_address": {
            "type": "string",
            "description": "The on-chain address that will receive the crypto asset. Echoes the `withdrawal_address` supplied on the request.",
            "example": "bc1qy08yh0cm565gvtx2z80dz6dnyr635mwtknl36e"
          },
          "destination_tag": {
            "type": "string",
            "description": "The destination tag or memo ID associated with the transaction. Required when the asset is EOS, XLM, or XRP and `no_destination_tag` is false. Empty string when not applicable.",
            "example": ""
          },
          "no_destination_tag": {
            "type": "boolean",
            "description": "Whether the destination address requires a destination tag. Required for tag-based assets (EOS, XLM, XRP); zerohash requires `no_destination_tag` to be `false` for EOS.",
            "example": false
          },
          "withdrawal_quote_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique ID for this locked network fee quote. Supply this value to POST /withdrawals/execute to complete the withdrawal. Quotes are valid for 30 seconds.",
            "example": "bdc4c936-8505-4e61-b859-f3a5a6bdc880"
          },
          "network_fee": {
            "type": "string",
            "description": "The network fee quantity that will be deducted from the requested withdrawal amount. Denominated in `asset`, always — even when the blockchain charges a different asset for gas, in which case it has already been converted. For the amount the chain actually charged, and the asset it charged, see `network_fee_native_amount` and `network_fee_asset`.",
            "example": "0.00000282"
          },
          "network_fee_notional": {
            "type": "string",
            "description": "The network fee notional value in USD.",
            "example": "0.22"
          },
          "net_withdrawal_quantity": {
            "type": "string",
            "description": "The asset quantity that will arrive on-chain: requested withdrawal amount minus the network fee.",
            "example": "0.04867333"
          },
          "net_withdrawal_notional": {
            "type": "string",
            "description": "The notional value in USD that will arrive on-chain: `amount_notional` minus `network_fee_notional`.",
            "example": "3832.29"
          },
          "amount_notional": {
            "type": "string",
            "description": "The notional USD value of the requested withdrawal amount.",
            "example": "3832.51"
          },
          "withdrawal_fee": {
            "type": "string",
            "description": "The withdrawal fee (denominated in the withdrawn asset) that will be charged by zerohash. Returns \"0\" when no withdrawal fee applies.",
            "example": "0"
          },
          "network_fee_asset": {
            "type": "string",
            "description": "The asset the blockchain charges the network fee in. For a token withdrawal this is the chain's own coin rather than the token, which is why it can differ from `asset`. Note that `network_fee` is **not** denominated in this asset: it is converted into `asset` before it is quoted, because it is netted against the requested amount. For the amount as the chain charged it, see `network_fee_native_amount`.",
            "example": "ETH"
          },
          "network_fee_native_amount": {
            "type": "string",
            "description": "The network fee as the blockchain charged it, denominated in `network_fee_asset` rather than in `asset`. Equal to `network_fee` when the chain charges the withdrawn asset itself. Omitted for quotes locked before this value was recorded.",
            "example": "0.00000021"
          },
          "network_fee_notional_currency": {
            "type": "string",
            "description": "The fiat currency `network_fee_notional` is denominated in. Always `USD`.",
            "example": "USD"
          },
          "withdrawal_fee_asset": {
            "type": "string",
            "description": "The asset `withdrawal_fee` is denominated in. Always the withdrawn asset.",
            "example": "USDT.ETH"
          },
          "withdrawal_fee_notional": {
            "type": "string",
            "description": "The notional value of `withdrawal_fee`, at the rate the quote locked. Omitted when no withdrawal fee applies.",
            "example": "15.00"
          },
          "withdrawal_fee_notional_currency": {
            "type": "string",
            "description": "The fiat currency `withdrawal_fee_notional` is denominated in. Always `USD`.",
            "example": "USD"
          }
        }
      },
      "GetLockedNetworkFeeResponse": {
        "type": "object",
        "properties": {
          "message": {
            "$ref": "#/components/schemas/LockedNetworkFeeEntity"
          }
        }
      },
      "TravelRuleGateBody": {
        "type": "object",
        "properties": {
          "message": {
            "type": "object",
            "properties": {
              "travel_rule": {
                "type": "object",
                "properties": {
                  "account_status": {
                    "type": "string",
                    "enum": [
                      "action_required",
                      "processing",
                      "blocked",
                      "unknown"
                    ]
                  }
                },
                "required": [
                  "account_status"
                ]
              }
            },
            "required": [
              "travel_rule"
            ]
          }
        }
      }
    }
  }
}
```