Buy EMC with USDT (open an order)
buy_emcBuy EMC with USDT (TRC20): get a deposit address, transfer the exact amount, and receive EMC automatically at your address.
Instructions
Open an order to buy EMC with USDT (TRC20) and get back a shared TRON
deposit_address plus the EXACT amount_usdt to send. This does NOT move funds:
you then transfer that exact figure (it is your order's matching tag) to the
deposit address; on confirmed payment, EMC (amount_usdt × rate) is delivered to
your address automatically. Keep the returned token and poll get_order_status
until 'notified'; to abandon before paying, call cancel_order. One-way — a wrong
amount cannot be matched and is NOT refunded. By default each call opens a NEW
order; pass a stable idempotency_key to make retries return the same order. Use
get_swap_config first to pick a valid amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_usdt | Yes | USDT to pay; must be one of the allowed denominations from get_swap_config (currently 5 or 10) | |
| destination_emc_address | Yes | your EMC address to receive EMC (legacy 'E…' or bech32 'em1…') | |
| idempotency_key | No | optional: a stable string you choose; retrying buy_emc with the same key + address + amount returns the SAME order instead of opening a new one (use it so a retry after a timeout doesn't create a duplicate) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | opaque handle to poll this order | |
| order_id | Yes | ||
| deposit_address | Yes | ||
| amount_usdt | Yes | EXACT amount to send — pay this figure | |
| emc_amount | Yes | ||
| status | Yes | ||
| expires_at | Yes |