Get a deposit address for a customer
상황: member-1001 will pay in USDT on TRC20
POST /v1/crypto/addresses
{
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
}
➡️ You get a per-customer address to show as a QR
crypto사용자마다 전용 BTC / USDT / USDC 주소(TRON, Ethereum, BNB Chain, Polygon, Arbitrum, Base, Optimism, Avalanche)를 주고 webhook으로 알립니다 — 곧 출시.
🕒 최근 업데이트: 태국 시간 (UTC+07:00) · ✅ 기존 코드 그대로 작동
이 링크를 AI에게 주거나(전체 API Markdown) 버튼을 누르세요. 프롬프트가 복사되고 AI가 열립니다
https://app.tungkao.com/docs/api/crypto.md?lang=kohttps://api.tungkao.com/changelog/crypto.json이 링크는 이 API의 업데이트를 JSON으로 돌려줍니다 (key 불필요, 모든 출처 허용). 관리자 페이지에 “업데이트 공지” 상자로 보여 주고 last_updated가 바뀌면 “새 글”로 표시하세요
복사 후 열기: AI 버튼을 누르면 프롬프트가 자동 복사됩니다. 입력창이 비어 있으면 붙여넣기 하세요
판매자 포털(API key)에서 crypto 키를 만들고 모든 요청에 이 header를 보내세요 — 다른 서비스의 키는 여기서 작동하지 않습니다
Authorization: Bearer $TUNGKAO_KEY/v1/crypto/addressescurl -X POST https://api.tungkao.com/v1/crypto/addresses \
-H "Authorization: Bearer $TUNGKAO_KEY" \
-H "Content-Type: application/json" \
-d '{"asset":"USDT-TRC20","customer_ref":"member-1001"}'// Node.js 18+ (nothing to install)
const res = await fetch("https://api.tungkao.com/v1/crypto/addresses", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.TUNGKAO_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
}),
});
const data = await res.json();
console.log(data);<?php
$ch = curl_init("https://api.tungkao.com/v1/crypto/addresses");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TUNGKAO_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
"asset" => "USDT-TRC20",
"customer_ref" => "member-1001"
]),
]);
$data = json_decode(curl_exec($ch), true);
print_r($data);import os, requests # pip install requests
r = requests.post(
"https://api.tungkao.com/v1/crypto/addresses",
headers={"Authorization": f"Bearer {os.environ['TUNGKAO_KEY']}"},
json={
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
},
timeout=30,
)
print(r.json())상황: member-1001 will pay in USDT on TRC20
POST /v1/crypto/addresses
{
"asset": "USDT-TRC20",
"customer_ref": "member-1001"
}
➡️ You get a per-customer address to show as a QR
상황: You want minimums and confirmations per coin
GET /v1/crypto/assets
➡️ Returns min_deposit and confirmations_required per asset
상황: Waiting for the customer's payment
GET /v1/crypto/deposits{
"success": true,
"data": [
{
"asset": "USDT-TRC20",
"customer_ref": "member-1001",
"amount": "25.00",
"confirmations": 20,
"confirmations_required": 20,
"status": "confirmed"
}
]
}
➡️ confirmed = credit · pending = wait · ignored = below minimum
상황: Withdraw USDT to your own wallet
POST /v1/crypto/withdrawals
{
"asset": "USDT-TRC20",
"to_address": "T…your address…",
"amount": "100"
}
➡️ Always check the address matches the network; wrong-network transfers can't be recovered
✅ 기존 코드 그대로 작동
API 정상 여부를 언제든 확인 — 키 불필요
GET https://api.tungkao.com/status
curl https://api.tungkao.com/status{
"success": true,
"data": {
"status": "ok",
"services": [
{ "id": "slip_verify", "status": "ok", "routes": ["ok", "ok", "busy"] },
{ "id": "slip_deposit", "status": "ok", "routes": ["ok", "ok", "busy"] },
{ "id": "login", "status": "ok" },
{ "id": "telegram", "status": "ok" },
{ "id": "discord", "status": "ok" },
{ "id": "email", "status": "busy" },
{ "id": "crypto", "status": "ok" },
{ "id": "core", "status": "ok" }
],
"paused": [],
"updated_at": "2026-11-14T12:00:00.000Z"
}
}Powered by TUNGKAO