Step-by-step guide to resolving a Travel Rule request for information on an on-hold crypto deposit.
This guide walks you through resolving a Travel Rule request for information on an on-hold crypto deposit — from detecting the on-hold status to resolving the RFI and allowing the transaction to proceed.
When a crypto deposit is placed on hold due to a Travel Rule requirement, Uphold sends a core.transaction.status-changed webhook with status: on-hold and statusDetails.reason: pending-requests-for-information.
Abbreviated — the transaction object includes additional fields.
If you are using polling instead of webhooks, check for status: on-hold and statusDetails.reason: pending-requests-for-information on the transaction object.
Call List requests for information endpoint to retrieve all RFIs associated with the transaction, then filter the results to keep only entries where type is “travel-rule”. From that filtered set, check whether any RFI has a status of “pending” — if so, the transaction is still awaiting resolution.
GET /core/transactions/{transactionId}/requests-for-information
If all travel-rule RFIs have a status of “ok”, the transaction may have already been moved out of on-hold status automatically. Make sure to re-fetch the transaction and check its current status before taking further action.
Create a session tied to the RFI by calling Create session with flow: deposit-form and the data: requestForInformationId. Each session is single-use and bound to a specific RFI.
POST /widgets/travel-rule/sessions{ "flow": "deposit-form", "data": { "requestForInformationId": "3f6d0c1e-a1bf-4b25-9802-2a3ee492d3c8" }}
A successful response returns the session data needed to initialize the widget.
Widget sessions expire after 2 minutes. If the session expires before the user opens the widget — or while they are mid-form — the widget emits an error event. Create a new session and re-mount to let the user retry.
Initialize the widget using the session returned from the API and mount it into your application. The widget does not unmount itself — always call unmount() after handling any event.
import { TravelRuleWidget } from '@uphold/enterprise-travel-rule-widget-web-sdk';const widget = new TravelRuleWidget<'deposit-form'>(session, { debug: true });widget.on('ready', () => { // Widget has loaded and is ready for user interaction});widget.on('complete', (event) => { // `event.detail.value` is the entire Travel Rule payload — forward it unchanged const { value: travelRule } = event.detail; sendToBackend({ travelRule }); widget.unmount();});widget.on('cancel', () => { widget.unmount();});widget.on('error', (event) => { console.error('Travel Rule widget error:', event.detail.error); widget.unmount();});widget.mountIframe(document.getElementById('travel-rule-container'));
The example above is for web applications. For native apps using a WebView, see Native app integration.
Once the widget emits complete, send the payload to your backend. The request body’s data field is the full event.detail.value object from the complete event, passed through unchanged. See complete event for the event reference.
PUT /core/transactions/{transactionId}/requests-for-information/{requestForInformationId}
The cancel event fires when the user closes the widget without completing the form. The transaction remains on-hold until the RFI is resolved — create a new widget session for the same RFI to let the user retry. See cancel event for the event reference.
widget.on('cancel', () => { widget.unmount(); // Redirect back or show a cancellation message});
To trigger a Travel Rule RFI on a deposit, use a GB user account and send 30 XRP from an unhosted (self-custodial) wallet to the user’s Uphold deposit address.Verify the following:
A core.transaction.status-changed webhook is received with status: on-hold and statusDetails.reason: pending-requests-for-information.
After completing the widget flow and calling Update request for information, the RFI status changes to ok and the transaction moves back to processing.
The transaction status updates from processing to completed within a few minutes, assuming no other blockers.