CREATE_DEPOSIT_ADDRESS
Generate a deposit address on Upbit exchange to receive cryptocurrency deposits for a specified currency and network type.
Instructions
Request creation of a deposit address (requires private API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| net_type | Yes |
Implementation Reference
- Handler function that authenticates and makes a POST request to Upbit API to create a deposit address.execute: async (params: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const token = signJwtToken(params); const data = await fetchJson<unknown>(client, "/deposits/coin_address", { method: "POST", data: params, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
- Zod schema defining input parameters: currency (string) and net_type (string).const paramsSchema = z .object({ currency: z.string(), net_type: z.string(), }) .strict();
- src/index.ts:45-45 (registration)Registration of the createDepositAddressTool in the FastMCP server.server.addTool(createDepositAddressTool);