What Is a Crypto Deposit Address? A Guide for Apps
What a crypto deposit address is, how shared, memo and per-user addresses differ, what one address can receive, and how apps create them.
A crypto deposit address is the address someone sends cryptocurrency to so it is added to their account somewhere: an exchange, a game, a wallet app, a marketplace. It looks like any other blockchain address. What makes it a deposit address is what the app does with it: it watches the address and credits whatever arrives to the right account.
Three ways apps handle deposits
- One shared address. Everyone sends to the same address and the app guesses who paid from the amount or a screenshot. It breaks as soon as two people send the same amount, and it turns every mistake into a support ticket.
- A shared address plus a memo or tag. Users add a code to the transfer that says who they are. It works on chains that support memos, but users forget it often, and many wallets make it easy to leave out.
- A deposit address per user. Every user gets their own address, so whatever arrives there is theirs, with nothing to type. This is what large exchanges do, and it is the method that scales.
What one address can receive
An address belongs to a network, and a token belongs to a network too. On Ethereum, BNB Chain and Polygon the same 0x address format is used, but a deposit only counts on the network the app expects: USDT sent on BNB Chain does not appear on the Ethereum side of the same address. That is why deposit screens always name the network next to the address.
- Stablecoins such as USDT and USDC are tokens, so the address receives them as token transfers.
- The network's own coin (ETH, BNB, POL) arrives as a plain transfer to the address.
- Some apps give one address per network and token, so a deposit can only be the thing that address is for.
Permanent or one-time
A deposit address can be permanent, for topping up an account again and again, or created for one payment, like an invoice. Permanent addresses suit balances and wallets; one-time addresses suit checkouts, where each order gets a fresh address and an exact amount. LirChain has both: deposit wallets for the first and one-time payments for the second.
What it takes to run deposit addresses
- Creating addresses and keeping their keys safe.
- Watching every address on every network, and waiting for confirmations before crediting.
- Collecting funds from thousands of addresses into one wallet, which needs gas on each of them.
- Turning what arrives into one balance, and telling your app about each deposit.
Or one API call per user. A deposit address API creates the address, watches it, collects the funds and sends your server a webhook with your own user id:
curl https://api.lirchain.com/merchant/deposit-wallet/create \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"network": "polygon",
"asset": "USDC",
"external_id": "customer-7731"
}'const API_KEY = "YOUR_API_KEY";
async function createDepositWallet(params) {
const response = await fetch("https://api.lirchain.com/merchant/deposit-wallet/create", {
method: "POST",
headers: { "x-api-key": API_KEY, "content-type": "application/json" },
body: JSON.stringify(params),
});
if (!response.ok) {
throw new Error(`LirChain API ${response.status}: ${await response.text()}`);
}
return response.json();
}
const result = await createDepositWallet({
network: "polygon",
asset: "USDC",
external_id: "customer-7731",
});const API_KEY = "YOUR_API_KEY";
type CreateDepositWalletParams = {
network: string;
asset: string;
external_id?: string;
};
type CreateDepositWalletResult = {
id: string;
project_id: string;
merchant_id: string;
network: string;
address: string;
asset: string;
external_id: string | null;
};
async function createDepositWallet(params: CreateDepositWalletParams): Promise<CreateDepositWalletResult> {
const response = await fetch("https://api.lirchain.com/merchant/deposit-wallet/create", {
method: "POST",
headers: { "x-api-key": API_KEY, "content-type": "application/json" },
body: JSON.stringify(params),
});
if (!response.ok) {
throw new Error(`LirChain API ${response.status}: ${await response.text()}`);
}
return response.json();
}
const result = await createDepositWallet({
network: "polygon",
asset: "USDC",
external_id: "customer-7731",
});import requests
API_KEY = "YOUR_API_KEY"
def create_deposit_wallet(**params):
response = requests.post(
"https://api.lirchain.com/merchant/deposit-wallet/create",
headers={"x-api-key": API_KEY},
json=params,
timeout=30,
)
response.raise_for_status()
return response.json()
result = create_deposit_wallet(
network="polygon",
asset="USDC",
external_id="customer-7731",
)<?php
const API_KEY = "YOUR_API_KEY";
function create_deposit_wallet(array $params): array
{
$curl = curl_init("https://api.lirchain.com/merchant/deposit-wallet/create");
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($params),
CURLOPT_HTTPHEADER => ["x-api-key: " . API_KEY, "content-type: application/json"],
]);
$body = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($body === false || $status >= 400) {
throw new Exception("LirChain API $status: $body");
}
return json_decode($body, true);
}
$result = create_deposit_wallet([
"network" => "polygon",
"asset" => "USDC",
"external_id" => "customer-7731",
]);package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
const apiKey = "YOUR_API_KEY"
func CreateDepositWallet(params map[string]any) (map[string]any, error) {
body, err := json.Marshal(params)
if err != nil {
return nil, err
}
request, err := http.NewRequest("POST", "https://api.lirchain.com/merchant/deposit-wallet/create", bytes.NewReader(body))
if err != nil {
return nil, err
}
request.Header.Set("x-api-key", apiKey)
request.Header.Set("content-type", "application/json")
response, err := http.DefaultClient.Do(request)
if err != nil {
return nil, err
}
defer response.Body.Close()
data, err := io.ReadAll(response.Body)
if err != nil {
return nil, err
}
if response.StatusCode >= 400 {
return nil, fmt.Errorf("LirChain API %d: %s", response.StatusCode, data)
}
var result map[string]any
return result, json.Unmarshal(data, &result)
}
func main() {
result, err := CreateDepositWallet(map[string]any{
"network": "polygon",
"asset": "USDC",
"external_id": "customer-7731",
})
fmt.Println(result, err)
}The Free plan includes 100 deposit wallets. Deposits worth less than $1 are not counted, so tell your users the minimum. The full walkthrough is in how to give every user their own USDT deposit address.
Questions and answers
- What is a deposit address in crypto?
- It is a blockchain address an app gives you so that whatever you send to it is added to your account in that app. The app watches the address and credits each confirmed transfer to you.
- Is a deposit address the same as a wallet address?
- It is a wallet address, used for one purpose: receiving funds that an app credits to an account. The difference is in what the app does with it, not in how the address looks.
- Can I reuse a deposit address?
- A permanent deposit address can be used again and again. A one-time payment address is meant for a single payment, so check which kind an app gave you before sending again.
Try it on the Free plan
Every product is included, and no card is needed to sign up.
Create a free account