Create a deposit address

POST/uda

Create a universal deposit address for an owner: one address family payable on every chain the environment's deposit addresses accept, whose money settles at destination.

  • The create is idempotent on the owner and the destination.

    When the environment already holds an address for the same owner settling at the same destination, the call answers 200 with it and creates nothing; 201 answers an address this request created. Both answer the UdaAddress itself, the shape the list carries. A 200 changes nothing on the address it answers: the request's accepted_assets, routing_policy and routing_rules do not replace the address's own, though a member the create refuses is refused all the same.

  • What it refuses.

    A missing owner or destination answers 422 parameter_missing naming it. A destination in both forms or neither, an address not valid on its chain, an asset the chain does not carry, a treasury or routing policy the environment does not hold, and a routing rule that matches nothing answer 422 parameter_invalid naming the member. A body that is not a JSON object of these members answers 400 body_invalid.

Show 3 more details
  • A deposit address may not be ready yet.

    When none is ready to hand out, the call answers 503 uda_wallet_pool_exhausted with Retry-After; retrying with the same Idempotency-Key creates the address once one is ready. An address is answered only once a deposit to it is detected on every chain it is payable on: when it cannot be readied for that yet, the call answers 503 uda_address_not_ready with Retry-After, and retrying the same request answers the address, with 200, once it is.

  • From a browser

    (the gateway, preview) the publishable key and a session token with deposit enabled create the session's customer's address: owner is the session's customer and destination the one its deposit component fixes, and the request may send accepted_assets alone (anything else, an owner included, answers 400 naming it). A token without deposit answers 403 component_not_enabled.

  • Who may.

    In live it is an owner's; in a sandbox an owner's or a developer's. Anyone else answers 403 permission_denied. A secret key of the environment may when it holds uda.create. It asks no step-up.

Header parameters

  • X-Stridge-Environmentstring <uuid>optional

    Which environment the request acts inside, on an operation a session and an API key both call. Learn more

    Show full description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.

  • Idempotency-Keystringoptional

    A caller-chosen key making this request safe to retry. Sent, the server remembers what the first request with it produced; omitted, every request is a new one. Learn more

    Show full description

    The same key with the same parameters returns the first result, status and body both, and does nothing a second time. So a retry after a dropped connection is safe whether or not the first attempt landed. The parameters are compared as parsed, not as bytes: the query with its names sorted and the JSON body decoded, so member order, spacing and escaping never make two requests differ, while any changed value does.

    What is remembered is the answer of an attempt that began execution, success or failure, a 500 included. A refusal made before execution is not remembered, so a retry with the same key runs afresh once its cause is fixed: a validation error (400, 422), a 409 conflict, a 429, a 403 step_up_required, and any answer carrying Retry-After. An answer whose body is larger than 64 KiB is not remembered either, and an operation may say that its 500 is not; a retry of either runs the request again. What the first attempt did stands, so a create that took a unique value answers that value's conflict on the retry: a payout whose first attempt took its reference_id answers 409 payout_reference_taken.

    The same key with different parameters answers 400 with idempotency key replayed with a different body: a key names one request, and reusing it for another is a client bug rather than a retry. A replay while the first request is still in flight answers 409 at once with a request with this idempotency key is still in flight, and the remedy is to retry once the first has answered.

    Keys are scoped to the environment the request acts inside, and to its reset: one environment's key never answers another environment's request, and a key used before a sandbox reset runs afresh after it.

    An operation that acts on a workspace or on the account rather than inside an environment, such as creating a workspace or requesting go-live in the dashboard, scopes its keys to the caller and to its path, so the same key sent for another workspace is a separate request and never a replay.

Request body

  • ownerstring

    Who the address is for, as the caller names them. The environment holds one address per owner and destination, so creating it again answers the address it holds.

  • Where a new address's money settles, in exactly one of two forms: a named treasury, whose destination the address follows when the treasury moves, or an inline network_id and address (with asset_symbol, the chain's own coin when absent). Both forms in one request, or neither, answer 422.

    • treasurystring

      The name of one of the environment's treasuries.

    • network_idinteger <int32>

      The destination chain, by its numeric identifier.

    • addressstring

      The address the money settles at, valid on network_id.

    • asset_symbolstring

      The asset the money settles in, as the network catalogue names it on network_id.

  • accepted_assetsarray<string>

    The asset symbols the address accepts. Absent or empty, it accepts every asset.

  • routing_policystring

    The name of the shared routing policy the address consults when its own rules fall through. Absent, the address takes the environment's default policy. A name no policy in this environment carries answers 422.

  • The address's own ordered overrides, at most five.

    • What a rule matches: a chain, an asset, or both. A match stating neither answers 422.

    • Where a new address's money settles, in exactly one of two forms: a named treasury, whose destination the address follows when the treasury moves, or an inline network_id and address (with asset_symbol, the chain's own coin when absent). Both forms in one request, or neither, answer 422.

Responses

The environment already holds this address for the owner and destination; it is answered.

  • idstring <uuid>required

    The address family's opaque identifier.

  • objectstringrequired

    The object's type, always uda_address.

  • environment_idstring <uuid>required

    The environment this address is scoped to. It is carried on the object rather than implied by the request, so the scope a client rendered is the scope the server answered in.

  • livemodebooleanrequired

    true when environment_id names a live environment and false in a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from.

  • ownerstringrequired

    Who the address was assigned to, as the caller named them at assignment. It is the caller's own identifier for a customer rather than anything this API mints, so it is free text.

  • statusstringrequiredenum active · retired

    Whether the address still accepts deposits. A retired address keeps its history and its settlements; it simply stops being handed out.

Show 5 more fields
  • Where money swept from the address ends up: an address on a chain, denominated in one asset, held either inline or by a named treasury.

    • addressstringrequired

      The address the money settles at.

    • network_idinteger <int32>required

      The destination chain, as the chain's own numeric identifier.

    • eip155_idstring | nullrequired

      The destination chain's EIP-155 identifier, or null where the chain is not EVM.

    • network_namestringrequired

      The destination chain's name.

    • asset_symbolstringrequired

      The asset the destination is denominated in.

    • asset_addressstringrequired

      The asset's contract on the destination chain, or empty where it is the chain's own coin.

    • asset_decimalsinteger <int32>required

      How many decimal places the destination asset carries.

    • treasurystring | nullrequired

      The treasury holding the destination, or null where the destination is an inline address the caller stated directly. A named treasury is a level of indirection: its address can move without every address that settles into it being rewritten.

  • Every chain the family is observed on. It is empty on an address minted before any chain was configured for it.

    • network_idinteger <int32>required

      The chain, as the chain's own numeric identifier. It is not a UUID and it addresses nothing in this API: a client resolves it against the network catalogue.

    • eip155_idstring | nullrequired

      The chain's EIP-155 identifier, or null where the chain is not EVM and has none. It is a second identifier for the same chain rather than a second chain: network_id is what this API keys on, and eip155_id is what a wallet's chainId field wants.

    • network_namestringrequired

      The chain's name.

    • addressstringrequired

      The address a payer sends to on this chain.

    • Every asset a deposit on this chain is credited for, the chain's native coin first. It is empty on a chain observed before any asset was configured for it.

  • The address's own ordered overrides, first match wins. Empty where it states none.

    • What a rule matches on. A rule fires when EVERY stated clause matches the deposit; a clause left empty matches anything, so an all-empty match is the catch-all.

    • Where money swept from the address ends up: an address on a chain, denominated in one asset, held either inline or by a named treasury.

  • routing_policy_idstring | null <uuid>required

    The shared rule list this address consults when its own rules all fall through, or null where it states none and inherits the environment's default.

  • created_atstring <date-time>required

    When the address was minted. RFC3339 UTC, Z suffixed. The list is ordered on it, newest first, and the details aggregate buckets on it.

Errors

The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.

Request
curl "https://api.stridge.com/v2/uda" \
  -X POST \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "owner": "customer_8412",
  "destination": {
    "treasury": "Operating Treasury",
    "network_id": 195,
    "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
    "asset_symbol": "USDT"
  },
  "accepted_assets": [
    "USDC",
    "USDT"
  ],
  "routing_policy": "vip_tier",
  "routing_rules": [
    {
      "match": {
        "source_network_id": 60,
        "source_asset_symbol": "USDC"
      },
      "destination": {
        "treasury": "Operating Treasury",
        "network_id": 195,
        "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
        "asset_symbol": "USDT"
      }
    }
  ]
}'

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response200
"id": "2d94e610-8f37-4c5b-a1e0-6b73f2905c48",
"object": "uda_address",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"owner": "customer_8412",
"status": "active",
"address": "0x1f8b25e73d940ab6c5e8127a5f2c81b93e4d6a0c",
"network_id": 195,
"eip155_id": "728126428",
"network_name": "Tron",
"asset_symbol": "USDT",
"asset_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"asset_decimals": 6,
"treasury": "Operating Treasury"
},
"network_id": 60,
"eip155_id": "1",
"network_name": "Ethereum",
"address": "0x9f2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d",
"symbol": "USDC",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"decimals": 6,
"logo": "https://assets.stridge.mock/tokens/usdc.svg"
}
]
}
],
"source_network_id": 60,
"source_asset_symbol": "USDC",
"source_token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
},
"address": "0x1f8b25e73d940ab6c5e8127a5f2c81b93e4d6a0c",
"network_id": 195,
"eip155_id": "728126428",
"network_name": "Tron",
"asset_symbol": "USDT",
"asset_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"asset_decimals": 6,
"treasury": "Operating Treasury"
}
}
],
"routing_policy_id": "7e13a0c8-4b6d-4f21-9c58-2a0e7d3b5f16",
"created_at": "2026-06-17T09:12:44Z"
}