Crypto Buy & Sell
Crypto Buy & Sell is active and available. The company has a BRL balance at XGate and can buy USDT or USDC using that balance. XGate sends the purchased crypto directly to a wallet specified by the company and declared as its own.
To sell, the company sends USDT/USDC to a fixed address provided by XGate (one per network). Each transfer confirmed on the network becomes a sale, and the BRL proceeds are credited to the company’s BRL balance or sent via Pix to an approved beneficiary, according to the company’s Dashboard settings.
XGate does not custody crypto for companies: purchased crypto is sent directly to the company’s wallet, and sales are settled in BRL balance or via Pix. The company’s customers are not involved in either the purchase or sale.
Assets and networks
| Asset | Networks |
|---|---|
USDT | POLYGON, ETHEREUM, TRON, SOLANA |
USDC | POLYGON, ETHEREUM, SOLANA |
Purchase flow
- Get the options: GET /crypto/options returns available assets, networks, fees, limits, and saved addresses.
- Get a quote (optional): POST /crypto/quotes guarantees the price for 30 seconds. To display an estimate only, use
POST /crypto/quotes/estimate. - Make a purchase: call POST /crypto/purchases with a quote or at market price. The BRL amount is debited from the balance.
- Track the purchase: use Get Purchase or the purchase webhooks (Webhooks tab › Crypto Purchase Webhook) until
DELIVERED(crypto confirmed on the network) orREJECTED(BRL returned to the balance).
Sale flow
- Get the addresses: the
saleobject from GET /crypto/options contains the company’s fixed address for each asset and network. - Send the crypto: each transfer confirmed on the network to that address becomes a sale. See Sell Crypto.
- Track the sale: use Get Sale or the sale webhooks (Webhooks tab › Crypto Sale Webhook) until
SETTLEDorSETTLED_TO_BALANCE.
Old crypto routes
Old crypto routes (customer wallet, deposits with conversion, crypto withdrawals, and withdrawals with conversion) stop working on 2026-10-30 at 00:00 (Brasília time, UTC−3). The table below shows what to use instead:
| Previous | Current alternative |
|---|---|
Pix deposit with cryptocurrency (conversion) | BRL Pix deposit + POST /crypto/purchases using the balance |
| Crypto withdrawal to an external wallet | POST /crypto/purchases: crypto is sent to a wallet owned by the company |
| USDT/USDC withdrawal → Pix | No replacement: XGate does not hold crypto balances for companies |
| Custodial wallet for a customer | No replacement: XGate does not custody crypto |