UDA quickstart
This page takes you from POST /v1/uda to a settled deposit: create a Universal Deposit Address (UDA), show its addresses to a customer, receive the webhooks, and look up the settlement. Follow it with a sandbox key, so every deposit is simulated and no real funds move. With a live key, creating the UDA, receiving webhooks, and looking up the settlement work unchanged, but the deposit step doesn't: test helpers answer 404 in live, so the customer sends a real transfer instead.
In the Stridge dashboard (opens in a new tab), choose
Developer → API Keys → Create API key in your sandbox and give
the key the Universal addresses scope. The secret starts with
sk_sbx_. Keep it on your server, and export it for the commands on
this page:
export STRIDGE_API_KEY='sk_sbx_...'Pick a stable owner identifier for the customer (your internal
user id works well) and a destination: the network, asset, and
address every deposit settles to. This UDA settles to USDC on
Arbitrum (network_id 9001).
curl -X POST 'https://api.stridge.com/v1/uda' \
-H "X-API-Key: $STRIDGE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"accepted_assets": ["USDC", "USDT", "ETH"],
"destination": {
"address": "0x8f4a2c9e1b3d7f5a6c8e0d9b2a4c6e8f0a2c4d6e",
"asset_symbol": "USDC",
"network_id": "9001"
},
"owner": "user_8a7f3c"
}'It answers 201 with the new UDA: its id and a deposit_addresses
list with one entry per network. Store both. The id drives every
later lookup, and the addresses are what you show your customer.
Calling it again with the same owner and destination answers 200
with the existing UDA instead of creating a second one, so the call is
safe to retry.
{
"livemode": false,
"id": "31d32b68-e455-42b7-9d39-d2904adbe1b8",
"status": "active",
"owner": "user_8a7f3c",
"deposit_addresses": [
{ "livemode": false, "network_id": "60", "eip155_id": "1", "network_name": "ethereum", "address": "0x3204…f741", "accepted_assets": [ … ] },
{ "livemode": false, "network_id": "8453", "eip155_id": "8453", "network_name": "base", "address": "0x3204…f741", "accepted_assets": [ … ] },
{ "livemode": false, "network_id": "9001", "eip155_id": "42161", "network_name": "arbitrum", "address": "0x3204…f741", "accepted_assets": [ … ] }
]
}To customize where deposits settle, extend this request:
- Add a
routing_rulesarray to send some deposits somewhere other than the defaultdestination, or to accept Tron assets that can't be routed. See Routing rules. - Replace the inline fields with
destination: { "treasury": "<name>" }, naming a treasury you created in the dashboard, to make the destination reusable: rotating the treasury updates every UDA that names it. See Treasuries.
Let the customer pick the network they want to pay on, and show the
matching deposit_addresses[].address. One address takes every
asset listed in that entry's accepted_assets, native coin and
tokens alike.
A network picker with a copy button works well. Don't ask the customer for the destination: you fixed it when you created the UDA.
In the dashboard, still in the sandbox, open Developer → Webhooks, choose Create endpoint, and subscribe it to these event types:
deposit.confirmeduda.settlement.createduda.settlement.completed
Store the endpoint's signing secret. Stridge signs every delivery with Standard Webhooks (opens in a new tab); see Verify the signature for the check your server runs.
In the sandbox, a test helper simulates the deposit instead of real
funds. This sends 0.05 ETH on Ethereum (network_id 60) to the
UDA. amount is in base units (wei), and every helper call needs an
Idempotency-Key:
curl -X POST 'https://api.stridge.com/v1/test_helpers/uda/deposits' \
-H "X-API-Key: $STRIDGE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H 'Content-Type: application/json' \
-d '{
"uda_id": "31d32b68-e455-42b7-9d39-d2904adbe1b8",
"network_id": "60",
"asset": { "native": true },
"amount": "50000000000000000"
}'GET /v1/test_helpers/options?uda_id=… lists the networks, assets,
and outcomes you can simulate for that UDA; see
Test helpers. In live, the customer sends a
real deposit to one of the deposit_addresses instead.
Once the deposit is confirmed, your endpoint receives:
deposit.confirmed, naming the deposit.uda.settlement.created, naming the settlement that routes it.uda.settlement.completed, once the settlement transaction has landed in the destination asset.
Each event is a short notice that names its object in
related_object. They are not guaranteed to arrive in this order, so
act on the object's current state rather than on arrival. See
Handle an event.
Fetch the settlement record by the related_object.id of the
uda.settlement.* events:
curl 'https://api.stridge.com/v1/uda/settlements/6a1f0c2b-3e94-4d1e-9b3c-5f2a8d4e1a6f' \
-H "X-API-Key: $STRIDGE_API_KEY"The record holds the source deposit transaction, the settlement transaction, the route and provider, and the fees: what you need for reconciliation and support tooling.
If you only have the deposit transaction hash — not the internal
settlement id — look it up with
GET /v1/uda/settlements/by-reference instead. See
List settlements by reference.
What to build next
- One UDA per customer. Call
POST /v1/udawith each customer's id asowner. - Reconciliation. Page through
GET /v1/uda/{id}/settlementsto fill an internal deposit ledger, or to catch up after missed webhooks. - Quotes before a deposit. Call
GET /v1/uda/quoteto show an expected fee and settlement time before the customer pays.
Common pitfalls
- A hard-coded network in the UI. A UDA has an address on every
supported network. Read
deposit_addressesrather than assuming one. - Treating the UDA id as an address. The
idis a UUID; the on-chain addresses are indeposit_addresses[].address. - Skipping signature verification. Every delivery is signed; reject any that fails the check.
- Expecting every asset to settle.
accepted_assetsis a hard filter. A deposit in any other asset is recorded but not settled, and the funds are not sent back automatically.