Look up a deposit address
GET /liquidityApi/getDepositAddress?symbol=USDT
Example request
curl 'https://app.quote.trade/liquidityApi/getDepositAddress?symbol=USDT'
Example response
{
"chain": "ETHEREUM",
"address": "0xYOUR_RETURNED_DEPOSIT_ADDRESS"
}
This public lookup does not require a signature and remains subject to deployment/geographic restrictions. Some gateways expose it under an unversioned /api alias; the explicit handler path is shown above. The response above is illustrative. Request the selected symbol (USDT, USDC, or XUSDC) and use the returned chain and deposit address. The following transfer example applies only when the response selects Ethereum mainnet. A deposit requires the authorized wallet to sign and send the token transfer; retrieving an address does not move funds.
Ethereum Mainnet: 0xdac17f958d2ee523a2206206994597c13d831ec7 (USDT_CONTRACT_ADDRESS)
JavaScript Code:
import { ethers } from "ethers"; // (ethers.js version 6.13.5)
// Set your wallet and RPC parameters.
const PRIVATE_KEY = "your_private_key_here"; // Keep this value private.
const DEPOSIT_ADDRESS = "0xYOUR_RETURNED_DEPOSIT_ADDRESS"; // Use getDepositAddress for USDT; verify its chain is ETHEREUM
const USDT_CONTRACT_ADDRESS = "0xdac17f958d2ee523a2206206994597c13d831ec7"; // USDT on Ethereum
const RPC_URL = "https://mainnet.infura.io/v3/YOUR_INFURA_API_KEY"; // Replace with your Infura/Alchemy RPC
// USDT ERC-20 ABI (Minimal for transfer function)
const USDT_ABI = [
"function transfer(address to, uint256 amount) public returns (bool)"
];
// Initialize ethers.js Provider & Wallet
const provider = new ethers.JsonRpcProvider(RPC_URL);
const wallet = new ethers.Wallet(PRIVATE_KEY, provider);
// Connect to USDT Smart Contract
const usdtContract = new ethers.Contract(USDT_CONTRACT_ADDRESS, USDT_ABI, wallet);
async function sendUSDT() {
try {
console.log(`Sending USDT from ${wallet.address} to ${DEPOSIT_ADDRESS}...`);
// Convert USDT amount (5 USDT = 5 * 10^6 because USDT has 6 decimals)
const amount = ethers.parseUnits("5", 6);
// Call transfer function
const tx = await usdtContract.transfer(DEPOSIT_ADDRESS, amount);
console.log("Transaction submitted:", tx.hash);
// Wait for transaction confirmation
await tx.wait();
console.log("Transaction confirmed:", tx.hash);
} catch (error) {
console.error("USDT transfer failed:", error);
}
}
// Execute the function
sendUSDT();
