GET_DEPOSIT_ADDRESS
Retrieve a deposit address for a specific cryptocurrency and network type on the Upbit exchange to enable fund transfers.
Instructions
Get a single deposit address for a currency and net_type (private)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| net_type | Yes |
Implementation Reference
- src/tools/get-deposit-address.ts:20-31 (handler)The execute function implementing the core logic of the GET_DEPOSIT_ADDRESS tool: authenticates and fetches deposit address from Upbit API.execute: async ({ currency, net_type }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query = { currency, net_type }; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/deposits/coin_address", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
- Zod schema defining input parameters for the tool: currency (string) and net_type (string).const paramsSchema = z .object({ currency: z.string(), net_type: z.string(), }) .strict();
- src/index.ts:46-46 (registration)Registers the getDepositAddressTool with the FastMCP server.server.addTool(getDepositAddressTool);