easyway
Sign inCreate free account

Crypto withdrawal security: who can move your balance?

A crypto payment gateway that holds your balance has to answer one question well: when money leaves, where is it allowed to go? easyway keeps what your customers pay on your balance until you withdraw it, and a live withdrawal can only go to an address you put on a whitelist with a two-factor code. This post walks through the rules as the API enforces them and what they mean when a password, a laptop or an API key is stolen.

The whitelist: one address, one coin, one network

Withdrawal addresses live under Payouts in the dashboard. Each entry is a coin on a network (for example USDT_TRC20), an address, a label and, for TON and XRP, an optional memo or destination tag. The address is checked for that network when you add it, so a TRON address can't be saved for USDT on BNB Smart Chain. An account can hold up to 50 entries, and adding the same address twice for the same coin is refused with address_already_whitelisted.

In live mode a withdrawal must name a coin and an address that match an active entry exactly, otherwise it stops with 403 address_not_whitelisted. The memo is not taken from the request at all: it comes from the whitelist entry. That matters for exchange deposits, where the memo decides whose account gets the money.

Where the two-factor code is asked

Action (live mode)Needs 2FA on + a fresh code?
Adding a withdrawal addressYes
Withdrawing from the dashboardYes
Creating an API key with payouts:writeYes
Changing a webhook endpointYes, when 2FA is switched on
Turning 2FA offYes
Removing a withdrawal addressNo: it can only narrow where money goes
Anything in test modeNo: test mode never touches a blockchain

Without 2FA switched on, these live actions are refused with twofa_not_enabled, so an account that never set up an authenticator cannot withdraw at all. Codes are standard 6-digit TOTP codes from Google Authenticator, Authy, 1Password and similar apps. A code that was already used is refused even inside its 30-second window, and each backup code works once. These endpoints are also rate-limited to 12 requests a minute per account, which makes guessing codes pointless.

Every new address sends an e-mail to the account owner with the coin, network, address and memo, and a link to remove it. The activity log in the dashboard records the change with the time and IP address.

After a withdrawal is requested

The amount plus the coin's flat withdrawal fee moves from your available balance to a locked one in the same database transaction that creates the payout, so two requests at the same moment can never spend the same money. While the payout is still pending you can cancel it and the funds return to your balance. The signing service, which runs on its own machine, also has a per-payout and a daily limit for every coin; a payout above either one is not sent automatically and stays pending until a person at easyway looks at it. When the transaction is broadcast the payout becomes sent with its transaction hash, and API integrations get a payout.sent webhook.

What a thief can and can't do

What leakedWhat it allowsWhat it doesn't
Your passwordSigning in and reading the dashboardAdding an address or withdrawing: both need the authenticator
An API key with invoices:write onlyCreating invoicesAny payout; the key has no payouts:write scope
An API key with payouts:writePayouts to addresses already on your whitelistSending to the thief's own address
An open dashboard sessionWhat the password allowsNew addresses, withdrawals or payout keys without a code
A copied deposit addressNothing: it only receivesSpending: the keys are on a separate signing machine

The worst realistic case with a leaked payout key is money moving early to wallets you already own. You can narrow that further with the key's IP allowlist (requests from anywhere else get ip_not_allowed) and by giving each integration only the scopes it needs; the API vs dashboard post lists them.

A short checklist

Switch on 2FA before you go live and print the backup codes. Whitelist only wallets you control, and label them so the notice e-mail is easy to recognise. Keep payouts:write off every key that doesn't send payouts, and add an IP allowlist to the one that does. Read every "new withdrawal address" e-mail: if you didn't add it, remove it and change your password. Payouts themselves, with fees, statuses and a settlement script, are covered in the payouts API post, and the security page describes how keys and balances are kept.

Create free accountRead the API docsAlready have an account? Sign in
Crypto withdrawal security: whitelist and 2FA | easyway