Skip to main content

Submit Travel Rule Transactions From Mobile With Scoped SDK Tokens

Mint a scoped transaction token on your backend, submit from the app with the X-Transaction-Token header, and keep the API key server-side.

Submit Travel Rule Transactions From Mobile With Scoped SDK Tokens

Contents

In this guide

Jump to the part you need.

If you ship a crypto wallet or exchange app, the SDK submits the transfer from the end user's device while token minting stays on your backend. This guide covers the scoped token path: your server mints a short-lived token bound to one vendor_data, the app submits with it, and the API key never leaves your infrastructure. Travel Rule costs $0.02 per outbound exchange. The caveat: GTR, TRUST, VerifyVASP and Sygna route only through your own network membership.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Scoped SDK token submission at a glance
ItemDetail
What you buildOne backend endpoint that mints an sdk_token, plus a submit call from the app through a Didit SDK
Backend callPOST /v3/transactions/sdk-token/ authenticated with x-api-key
Device callPOST /v1/transactions/ with the X-Transaction-Token header
Token lifetime900 seconds by default, 86400 seconds maximum, optional max_uses
Token bindingOne vendor_data value, enforced server-side on every submission
Travel Rule price$0.02 per outbound exchange
Transaction monitoring price1,000 monitored transactions a month on Free, 10,000 on Growth, 100,000 on Scale, then $0.001 per transaction
Wallet screening price$0.15 per screening
Where you check the resultDidit Business Console and transaction monitoring views

Start free in the sandbox at business.didit.me with no sales call. If you want to wire Didit into an AI assistant while you build, the Didit MCP server is free, and the full meter is on the pricing page. The product behind this guide is Didit Travel Rule.

What the scoped token pattern protects

Three properties come out of the design, and they are the reason to use it instead of putting a key in the app.

  • Spoof-proof subject binding. The token is scoped to one vendor_data at mint time. The subject identity of every transaction submitted with it is enforced server-side from that binding, so a tampered client cannot submit on behalf of another user, and the payload never needs to carry credentials.
  • Automatic device intelligence. The SDK collects a device fingerprint and sends it with the submission. Didit derives the IP address and user agent server-side, and the combined device context attaches to the transaction subject with no separate device token and no extra library.
  • Auto-launched wallet ownership proof. When the created transaction requires the end user to prove control of a wallet, the response carries an action_required block of type wallet_ownership and the SDK opens that flow immediately, then refreshes the transaction when it finishes.

One thing is deliberately not automatic. A required verification_session action is never auto-launched. It comes back in the same block, and your app starts it with its own Didit verification integration.

Prerequisites

What you need before the first submission
AreaRequirement
Plan and creditAny plan works and sandbox testing is free and unlimited. The Free plan gives $10 of credit a month to eligible organizations. Growth is $99 a month with $115 of credit and 4% off every Didit price. Scale is $299 a month with $350 of credit and 10% off.
ApplicationA Didit application in the Business Console. API keys are scoped to one application.
API keyCreate or copy it in Developers, then API keys. New keys start with sk_live_ or sk_test_ and must stay on the server.
PermissionsThe key has to be allowed to call the /v3/ transaction routes. A scoped key without that access answers 403.
Travel RuleEnabled for the application, with a VASP profile so counterparties and the directory can reach you.
Network membershipNeeded only for GTR, TRUST, VerifyVASP and Sygna, connected by you in the console Marketplace. INTERNAL, TRP and EMAIL need no membership.
ClientA Didit SDK in the mobile app, or your own HTTP client if you build the wire payload yourself.

How to submit a Travel Rule transaction from a mobile app

  1. Read your Travel Rule settings first. Confirm that the managed exchange is on and see which rails can reach a counterparty before you write submit code. The full field list is on the Get Travel Rule Settings page.

    curl -X GET https://verification.didit.me/v3/travel-rule/settings/ \
      -H "x-api-key: YOUR_API_KEY"

    Check is_enabled, threshold_amount and the networks object. A transfer whose amount, converted to your application's default currency, is at or above the threshold and names an unhosted_wallet counterparty goes straight to UNCONFIRMED_OWNERSHIP and the ownership-proof flow.

  2. Mint a token on your backend. Call POST /v3/transactions/sdk-token/ with the same API-key authentication as the rest of the /v3/ transaction endpoints. The SDK transaction submission documentation lists every field.

    curl -X POST https://verification.didit.me/v3/transactions/sdk-token/ \
      -H "x-api-key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "vendor_data": "user-042",
        "ttl_seconds": 900,
        "max_uses": 3
      }'

    The response carries sdk_token and expires_at. The camelCase aliases vendorData, ttlSeconds and maxUses are accepted too.

  3. Hand the token to the app and submit from the device. The SDK calls submitTransaction, which posts the payload to POST /v1/transactions/ with the token in the X-Transaction-Token header and adds device enrichment. The same SDK submission guide and the Submit Transactions API page cover the payload. If you call the endpoint from your own HTTP client, the wire payload looks like this.

    curl -X POST https://verification.didit.me/v1/transactions/ \
      -H "X-Transaction-Token: SDK_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "txnId": "wd-2026-07-07-0042",
        "type": "travelRule",
        "info": {
          "direction": "out",
          "amount": "0.25",
          "currency": "ETH",
          "currencyType": "crypto",
          "cryptoParams": { "crypto_chain": "ETH" }
        },
        "subject": { "fullName": "Jane Doe" },
        "counterparty": {
          "fullName": "Ana Diaz",
          "paymentMethod": { "type": "unhosted_wallet", "accountId": "0xBeneficiaryWallet01" }
        },
        "travelRule": {
          "status": "AWAITING_COUNTERPARTY",
          "beneficiaryData": { "wallet_address": "0xBeneficiaryWallet01", "name": "Ana Diaz" }
        },
        "includeCryptoScreening": true
      }'
  4. Branch on action_required. If the type is wallet_ownership, the SDK launches the widget for you and refreshes the transaction when the user finishes. If the type is verification_session, the SDK launches nothing: read the block and start your own verification flow with its session_token, or with url on web.

  5. Refresh the transfer. Read the current state with GET /v1/transactions/{transaction_id}/. The exchange moves through its negotiation states, and the console shows the same record.

    A Travel Rule transfer in the Didit Business Console with its state and counterparty data
    The transfer your device submission created, tracked through its negotiation states in the console.
  6. Wait for COMPLETED before you broadcast. Only once the exchange reaches COMPLETED should you broadcast the transfer on-chain. Then report the on-chain transaction hash back to Didit to close the exchange out as FINISHED. The FATF Travel Rule API page explains the state lifecycle.

  7. Mint a fresh token per session. The docs are explicit: mint per user session rather than reusing long-lived tokens, and keep max_uses tight when the number of expected submissions is known. Never ship the API key in an app; only the short-lived sdk_token travels to the device.

A finished Travel Rule transfer in the Didit Business Console
A closed exchange: the transfer finished after the on-chain hash was reported back.

Wire field mapping: camelCase on the device, snake_case on the server

The SDK builds the wire payload for you, so the mapping only matters when you call POST /v1/transactions/ directly. Each top-level wire field resolves to its POST /v3/transactions/ equivalent.

Device wire field to server field
Wire field/v3/ fieldRequiredNotes
txnIdtransaction_idYesYour unique identifier for the transaction.
typetransaction_categoryYesThe wire value travelRule is the Travel Rule category. Other categories include finance, kyc and user_event.
infotransaction_detailsYesCarries direction, amount, currency and currencyType (the alias of currency_kind), plus cryptoParams. Crypto kind is what lets blockchain screening trigger.
travelRuletravel_rule_detailsNoExchange status and beneficiary data, such as wallet_address and name.
includeCryptoScreeninginclude_crypto_screeningNotrue forces screening, false skips it, omitted or null uses the application default from Transactions, then Settings.
subjectsubjectYesThe sending party. Its vendor_data is enforced from the token binding.
counterpartycounterpartyNoThe receiving party. A payment method of type unhosted_wallet declares the wallet as self-hosted.
devicedevice_contextAutomaticThe SDK fills it; device is the camelCase alias used on the wire and returned on each party.

On the mint call itself, vendorData, ttlSeconds and maxUses map to vendor_data, ttl_seconds and max_uses. Mixed casing in one request is accepted, like the rest of the /v3/ API.

Testing with sandbox data

Sandbox testing is free and unlimited, and every check is mocked. Use the sk_test_ key, point the SDK at the sandbox application, and run the flow with a throwaway vendor_data such as user-042.

Expected success

A mint call returns sdk_token and an expires_at roughly 15 minutes out when you pass ttl_seconds 900. The submit call creates the transaction, returns it with its parties in the parties array under the roles APPLICANT and COUNTERPARTY, and includes action_required only when something is still needed from the user. A submitted transfer appears in the console and in the transaction monitoring views.

A wallet screening result in the Didit Business Console
Wallet screening attached to the same transaction, at $0.15 per screening.

Error cases and fixes

What goes wrong and how to fix it
SymptomCauseFix
401 on the mint callx-api-key is wrong, malformed, revoked or expiredRe-fetch the key from Developers, then API keys, and keep it on the server.
403 on the mint callNo key header, a scoped key without access to this resource or action, or a call from an address outside the key's IP listUse a key whose limits include the transaction routes.
403 with application_deletedThe key's application was deletedDo not retry. Use a key from an application that exists.
429Rate limit, with a wait field in secondsBack off for that many seconds, then retry.
Token rejected as expiredThe token's TTL elapsed before the submissionMint a new token for that session. Keep TTL short and mint right before submit.
Token rejected after several submissionsmax_uses was reachedMint a new token, or raise max_uses only when the expected count is genuinely known.
Submission refused for the wrong userThe client tried to submit under a different vendor_dataThis is the binding working. Mint the token for the correct user.

Disconnecting and stopping the metered work

To stop device submissions, stop minting tokens. A token stops working at its expires_at, which ttl_seconds sets at mint time up to a maximum of 86400 seconds, and max_uses caps how many successful submissions one token allows. Mint a new token when the next session starts instead of reusing the old one.

To turn the exchange side off as well, set is_enabled to false with PUT /v3/travel-rule/settings/, which is a partial update, then read the result back with GET /v3/travel-rule/settings/. Server-side POST /v3/transactions/ calls are separate from the token path, so stop those in your own code if you run both.

Cost of both ends

Minting a token is not a line on the price book. What you pay for is what the transaction actually runs.

  • Your side. One backend endpoint that calls POST /v3/transactions/sdk-token/, and one SDK call in the app. Nothing per token.
  • The Didit meter. Travel Rule is $0.02 per outbound exchange, billed once per exchange regardless of later status transitions. Transaction monitoring is $0.001 per transaction beyond the plan's monthly allowance, and each organization's plan includes 1,000 monitored transactions a month on Free, 10,000 on Growth and 100,000 on Scale, with Enterprise setting its allowance in the contract. The allowance resets on the 1st of each month and does not roll over. Wallet screening is $0.15 per screening, or bring your own screening provider and run it inside Didit.
  • Plan discount. Growth takes 4% off every Didit price, Scale takes 10%.

Worked cost example

Take a VASP on the Growth plan that submits 5,000 outbound Travel Rule transfers a month, and 1,500 of those need wallet screening.

  • Travel Rule: 5,000 x $0.0192 = $96.00
  • Wallet screening: 1,500 x $0.144 = $216.00
  • Transaction monitoring: 5,000 submitted transactions against the Growth allowance of 10,000 a month, so 0 x $0.001 = $0.00
  • Usage total: $96.00 + $216.00 + $0.00 = $312.00
  • Growth monthly credit: $115.00, so $312.00 - $115.00 = $197.00 comes from top-ups, on top of the $99.00 monthly fee

On list prices the same month is 5,000 x $0.02 = $100.00 plus 1,500 x $0.15 = $225.00, or $325.00. The token mint itself adds nothing on either run.

Sources

Next step: open the sandbox at business.didit.me, mint your first sdk_token with a test key, and submit one transfer end to end. No sales call is required. If you would rather drive the same calls from an AI assistant while you build, connect the Didit MCP server.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I submit a Travel Rule transaction from a mobile app without exposing the API key?

Your backend calls POST /v3/transactions/sdk-token/ with the API key and the user's vendor_data, then hands the returned sdk_token to the app. The SDK posts the transfer to POST /v1/transactions/ with the token in the X-Transaction-Token header. The API key stays on the server, and only the short-lived token reaches the device.

How long does a Didit scoped SDK token last?

The default is ttl_seconds 900, which is 15 minutes, and the maximum is 86400, which is 24 hours. You can also cap the number of successful submissions with max_uses, and omitting it allows unlimited uses inside the TTL. Didit recommends minting per user session rather than reusing long-lived tokens.

Which endpoint does the SDK post to, and what header does it use?

The SDK posts to POST /v1/transactions/ at verification.didit.me and sends the token in the X-Transaction-Token header. The same call also attaches a device fingerprint automatically, and Didit derives the IP address and user agent server-side.

Does Didit accept camelCase aliases in the token and submit payloads?

Yes. On the mint call, vendorData, ttlSeconds and maxUses are accepted alongside vendor_data, ttl_seconds and max_uses. The wire payload on the device is camelCase throughout, for example txnId, includeCryptoScreening and travelRule, while the server field names use snake_case.

What happens if someone tampers with the app and submits for another user?

The submission is refused. The token is scoped to one vendor_data at mint time, and the subject identity of every transaction submitted with it is enforced server-side from that binding. A tampered client cannot submit on behalf of another user, and the payload never has to carry credentials.

What is the difference between a wallet ownership action and a verification session action?

The response block carries a type. With wallet_ownership, the SDK auto-launches the widget so the user can prove control of the wallet, then refreshes the transaction when it finishes. With verification_session, the SDK launches nothing: your app reads the block and starts its own Didit verification flow with the session_token, or with url on web.

How much does one Travel Rule exchange cost on Didit?

Travel Rule is $0.02 per outbound exchange at list price, billed once per exchange regardless of later status transitions. Wallet screening is a separate $0.15 per screening, and transaction monitoring is $0.001 per transaction beyond your plan's monthly allowance. Growth takes 4% off every Didit price and Scale takes 10%.

How many monitored transactions are included in each plan?

Each organization's plan includes 1,000 monitored transactions a month on Free, 10,000 on Growth and 100,000 on Scale, and Enterprise sets its allowance in the contract. Every transaction beyond the allowance costs $0.001, the same on every plan. The allowance resets on the 1st of each month and does not roll over.

Do I need my own Travel Rule network membership to use this?

Only for the network rails. GTR, TRUST, VerifyVASP and Sygna route through a membership you connect in the console Marketplace, because Didit holds no platform membership on any of those networks today. INTERNAL, TRP and EMAIL reach counterparties without a membership.

Can I still use POST /v3/transactions/ server-side?

Yes, and you should when no end user is present, such as back-office transfers, batch imports or events reported by your own systems. Both paths create the same transaction records, run the same rules and emit the same webhooks. Only the device path needs a scoped token.

How do I test scoped token submission without spending money?

Use the sandbox application and its sk_test_ key. Sandbox testing is free and unlimited and every check is mocked, so you can mint tokens, submit transfers and watch the console records without spending credit.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.