This guide walks you through supporting crypto deposits using the REST API.Documentation Index
Fetch the complete documentation index at: https://developer.uphold.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- The user has completed onboarding and has the required capabilities enabled.
Walkthrough
Check available rails
Call List rails to confirm the asset and network the user wants to deposit from, and verify thedeposit feature is enabled.
features array — only proceed with networks that include "deposit". For assets supported by multiple networks, require an explicit network selection from the user.
Select destination account
Crypto deposits can target any account. If the selected account is not in the deposited asset, the amount will be converted at settlement using Uphold’s prevailing rate. Make sure the destination asset has the necessary features enabled.Find an existing account
Call List accounts to retrieve the user’s accounts and let them pick the one they want to fund.Create a new account
If the user has no accounts, create one with Create account before proceeding.Generate deposit method
Call Set up account deposit method with the target account id, asset, and network.address and, if applicable, a reference (e.g., destination tag, memo).
The deposit method may initially return
status: processing while the address is being prepared. Call Get account deposit method to confirm it is ready (status: ok) before displaying instructions to the user.reference is present, display it prominently and treat it as required input. We suggest also displaying a QR code to reduce input errors.
Monitor for the incoming transfer
Prefer webhooks for real-time updates, or fall back to polling if webhooks are not feasible.- Webhook events (recommended):
- core.transaction.created
status: processing→ detected on-chain but not yet confirmed
- core.transaction.status-changed
status: completed→ necessary confirmations reachedstatus: on-hold→ transaction checks paused (e.g., pending RFIs)status: failed→ irrecoverable error
- core.transaction.created
- Polling (fallback): Get transaction
Sample transaction
In a successful crypto deposit, the origin is represented as acrypto-address node reflecting the sender’s on-chain address. The destination is the account that was set up to receive the deposit.
Execution modes
Crypto deposits are processed using different execution modes depending on the environment and configuration:- On-chain execution: The transaction is processed directly on the blockchain network. The
origin.node.execution.modewill beonchainand include atransactionHashas shown in the example above. - Off-chain execution: When both the sender and recipient are Uphold users, the transaction is processed internally within Uphold’s infrastructure. This eliminates network fees and is faster than on-chain processing. The
origin.node.execution.modewill beoffchain. Theexecutionobject for these transactions includes additional properties:accountOwnerId(the sender user ID) andaccountId(the sender account ID). - Simulated execution: Used in development environments for testing purposes. The transaction appears as processed but does not affect actual blockchain state (user balances will be affected though). The
origin.node.execution.modewill besimulated(Available soon).
Handle on-hold transactions
If the crypto deposit is placedon-hold with reason pending-requests-for-information, resolve the pending RFIs before the deposit can complete.
List pending RFIs
Call List requests for information to retrieve the pending RFIs for the transaction.Travel Rule
Travel Rule is a regulatory requirement that mandates the collection and transmission of information about the originator and beneficiary of certain crypto transactions. Use the Travel Rule widget to collect the required information.Create the widget session
Call Create session with"flow": "deposit-form" and the RFI id.
Open the widget
The example below is for web applications. For native apps using a WebView, see Native app integration.
Update the RFI
Once the widget emitscomplete, call Update request for information with the Travel Rule data.
Notify the user
Display an in-app confirmation when the transaction iscompleted, and send an email if applicable.
You now support crypto deposits with the Enterprise API Suite.