Create a UDA address
/ udaAllocate a new Universal Deposit Address for your tenant. The call is idempotent on the owner and the destination together: if a UDA with the same owner and the same destination already exists, the existing record is returned with 200 instead of a duplicate. The destination is the treasury for a treasury-backed UDA, or the (network_id, address, asset) triple for an inline one; a treasury-backed UDA and an inline UDA are never collapsed into one, even when they point at the same wallet. The same owner with a different destination gets a new UDA. accepted_assets is a list of asset symbols (e.g. ["USDC", "USDT"]); if empty, the UDA accepts every asset configured on every UDA-supported chain.
Header parameters
- Idempotency-Keystringoptional
Optional. A unique key for this request, such as a UUID. A repeat of the same request with the same key within 24 hours is answered the first response again, refusals included, with
Idempotency-Replay: true, and is not carried out twice. Learn moreShow full descriptionShow less
Keys are scoped to your workspace and the key's environment, so every API key of that environment shares them. The same key with a different body is answered
409withIdempotency key reused with different request; a repeat that arrives while the first is still running waits for it, and is answered408withRequest processing timeoutif it does not finish in time.
Request body
UDA address configuration.
- ownerstringrequired
The owner the UDA is allocated for.
Where settlements for this UDA should be delivered, in exactly one of two forms:
treasury(the name of one of your treasuries, so a rotation of the treasury moves the UDA with it), or inlinenetwork_id+address(+asset_symbol), fixed at create time. Sending both forms is rejected with400.- treasurystring
Name of one of your treasuries. Leave the inline fields empty when set.
- addressstring
Destination wallet address (inline form).
- network_idstring
Destination SLIP-44 network id (inline form).
- asset_symbolstring
Destination asset symbol (inline form).
- treasurystring
- accepted_assetsarray<string>
Asset symbols this UDA accepts; empty means every asset on every UDA-supported chain.
Optional; max 5. Specificity wins, whatever the order: a rule pinning both
source_network_idandsource_asset_symbolbeats a network-only rule, and either beats an asset-only rule.Show full descriptionShow less
When no rule matches, the UDA's routing policy is consulted, and when that does not match either, settlements use the default destination.
Conditions a deposit must meet for this routing rule to apply. At least one of the two fields is required: both pin one asset on one network,
source_network_idalone matches any asset on that network, andsource_asset_symbolalone matches that asset on any network. Two rules on one UDA may not share the same match.Where a matching deposit settles, in the same two forms as the UDA's
destination: atreasuryname, or inlinenetwork_id+address(+asset_symbol). Sending both forms is rejected with400.
- routing_policy_idstring
Routing policy to attach to this UDA. Omit or send an empty string to attach the tenant's default policy. Per-UDA inline
routing_rulesstill take precedence over the policy.
Responses
An existing UDA address with the same owner and destination was returned.
- livemodeboolean
truewhen the API key that made the request acts in a live environment,falsein a sandbox.Show full descriptionShow less
It is on every object a keyed request answers with — the resource itself, each item of a list, and each object inside a list a resource carries — but not on the
success/messageenvelope or on an object nested directly in another (such asdestination,feesorpagination), so a payload read on its own still says which side of the boundary it came from. The two public endpoints answer without it. It is derived from the key at the time of the response and is never stored. - idstring
- ownerstring
- statusstringenum active · retired
- created_atstring <date-time>
Resolved destination (symbol plus the resolved contract address).
- treasurystring
The treasury name; present only for a treasury-backed destination.
- addressstring
- network_idstring
- eip155_idstring
- network_namestring
- asset_symbolstring
- asset_addressstring
- asset_decimalsinteger
- treasurystring
Show 3 more fieldsShow fewer fields
- livemodeboolean
truewhen the API key that made the request acts in a live environment,falsein a sandbox.Show full descriptionShow less
It is on every object a keyed request answers with — the resource itself, each item of a list, and each object inside a list a resource carries — but not on the
success/messageenvelope or on an object nested directly in another (such asdestination,feesorpagination), so a payload read on its own still says which side of the boundary it came from. The two public endpoints answer without it. It is derived from the key at the time of the response and is never stored. - addressstring
- network_idstring
- eip155_idstring
- network_namestring
- livemodeboolean
Empty when no rules are configured.
- livemodeboolean
truewhen the API key that made the request acts in a live environment,falsein a sandbox.Show full descriptionShow less
It is on every object a keyed request answers with — the resource itself, each item of a list, and each object inside a list a resource carries — but not on the
success/messageenvelope or on an object nested directly in another (such asdestination,feesorpagination), so a payload read on its own still says which side of the boundary it came from. The two public endpoints answer without it. It is derived from the key at the time of the response and is never stored.
- livemodeboolean
- routing_policy_idstring
The routing policy attached to this UDA, when set. Omitted for legacy UDAs that inherit the tenant default policy.