CANCEL_WITHDRAWAL
Cancel a pending digital asset withdrawal on Upbit using its unique UUID identifier through the private API.
Instructions
Cancel a digital asset withdrawal by UUID (requires private API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes |
Implementation Reference
- src/tools/cancel-withdrawal.ts:15-27 (handler)The execute function that cancels a withdrawal by UUID using a JWT-signed DELETE request to the Upbit API withdraw endpoint.execute: async ({ uuid }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query = { uuid }; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/withdraw", { method: "DELETE", params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
- src/tools/cancel-withdrawal.ts:6-6 (schema)Zod input schema requiring a non-empty 'uuid' string parameter.const paramsSchema = z.object({ uuid: z.string().min(1) });
- src/index.ts:43-43 (registration)Registers the cancelWithdrawalTool with the FastMCP server.server.addTool(cancelWithdrawalTool);