> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhino.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Fund embedded wallets with Smart Deposit Addresses

> Give each user a persistent deposit address that settles straight into their Privy embedded wallet. Accept USDT on Tron and stablecoins from any supported chain, and deliver USDC on your app's chain.

Apps built on Privy embedded wallets need a simple way for users to fund them from wherever their stablecoins already sit: an exchange, another wallet, or another chain. Rhino.fi's Smart Deposit Addresses (SDAs) give each user a persistent deposit address that settles directly into their Privy wallet. A user can send USDT on Tron, or USDC or USDT from any supported chain, including alternative versions such as USDT0 and USDC.e, or even native Bitcoin ([see all supported assets](https://docs.rhino.fi/get-started/supported-chains.md)), and receive USDC on your app's chain in their own wallet, with every deposit screened for KYT/AML risks. There is no separate bridging step for the user and no multi-chain infrastructure for you to run, and the funds stay non-custodial.

## Resources

> [card] [Smart Deposit Addresses (SDK)](https://docs.rhino.fi/sdk/smart-deposits.md)
>
> Create and manage SDAs with the Rhino.fi SDK.

> [card] [Smart Deposit Addresses (API)](https://docs.rhino.fi/api-integration/smart-deposits.md)
>
> The same flow over the REST API.

> [card] [Supported networks and assets](https://docs.rhino.fi/get-started/supported-chains.md)
>
> Chains and tokens you can accept.

> [card] [Privy: server-side wallets](https://docs.privy.io/recipes/wallets/server-side-user-wallets)
>
> Create embedded wallets for your users from your backend.

## Prerequisites

* An active Rhino.fi account with API credentials provisioned in [Rhino.fi Console](https://console.rhino.fi).
* The [Rhino.fi SDK](https://docs.rhino.fi/sdk/quickstart.md) integrated into your backend services.
* A Privy app with embedded wallets enabled, and the Privy server SDK (`@privy-io/node`) in your backend.
* A publicly accessible HTTPS endpoint to receive [Rhino.fi webhook events](https://docs.rhino.fi/webhook/endpoint-setup.md).

## How it works

```mermaid theme={null}
flowchart LR
  A[User's exchange or wallet<br/>USDT on Tron] -->|sends to| B[User's SDA]
  B --> C[Rhino.fi<br/>KYT/AML, bridge, convert]
  C -->|USDC on Base| D[User's Privy wallet]
  C -->|webhook| E[Your backend<br/>updates the app]
```

1. **Embedded wallet:** the user gets a Privy embedded wallet on your app's chain (Base in this example).
2. **Deposit address:** your backend creates a Rhino.fi Smart Deposit Address (SDA) whose destination is that wallet, and shows the SDA in your app.
3. **User deposit:** the user sends a [supported stablecoin from any supported network](https://docs.rhino.fi/get-started/supported-chains.md), for example USDT on Tron from an exchange.
4. **Rhino.fi processing:** Rhino.fi automatically detects the transfer, screens it for KYT/AML, bridges and converts it.
5. **Settlement:** USDC arrives in the user's Privy wallet on Base. Your backend receives a webhook and updates the app.

The user keeps custody throughout: Rhino.fi settles into the user's own wallet, not to an account you hold. Deposits that fail compliance screening are not settled and should be shown to the user as under review. See [how refunds on SDAs work](https://learn.rhino.fi/articles/4659122464-how-do-refunds-on-sdas-work-and-what-needs-to-be-considered).

## Interactive demo

See what your user sees when they fund their wallet.

[Rhino.fi embedded wallet funding demo](https://rhino.coastdemo.com/share/6b113f49818a213120b1f605)

Try it: funding an embedded wallet

## Step 1: Get the user's embedded wallet address

If you create wallets when users log in (`createOnLogin` in `PrivyProvider`), read the address of the user's embedded wallet from their Privy user record. If you create wallets from your backend, use the address Privy returns:

```ts theme={null}
import { PrivyClient } from '@privy-io/node';

const privy = new PrivyClient({ appId: PRIVY_APP_ID, appSecret: PRIVY_APP_SECRET });

// Create an Ethereum (EVM) embedded wallet owned by the user
const wallet = await privy.wallets().create({
  chain_type: 'ethereum',
  owner: { user_id: privyUser.id },
});
// wallet.address is the user's wallet on Base
```

## Step 2: Create an SDA that settles into the wallet

```ts theme={null}
// create() returns a list with one entry per deposit chain
const [sda] = await sdk.api.depositAddresses.create({
  depositChains: ['TRON'],             // users send USDT on Tron
  destinationChain: 'BASE',            // your app's chain
  destinationAddress: wallet.address,  // the user's Privy wallet
  tokenOut: 'USDC',                    // settle as USDC, whatever stablecoin was sent
  addressNote: privyUser.id,           // returned on webhook events (max 80 characters)
});

// Save sda.depositAddress against the user and show it in your app.
```

To accept deposits from EVM chains as well, create one more SDA with every EVM chain you support in `depositChains`: the response has one entry per chain, all with the same address. Tron, Solana and other non-EVM chains each need their own SDA.

Create SDAs the first time a user opens your "Add funds" screen rather than at sign-up, so you only create them for users who deposit, and reuse them on every later visit: the address doesn't change. Each user has their own SDAs, so the number you need grows with your user base; see [Limits](https://docs.rhino.fi/get-started/limits.md) for how SDA allowances work on your plan.

## Step 3: Show the deposit address in your app

Show `sda.depositAddress` on your funding screen, with the networks and tokens from `sda.supportedTokens`, a copy button and a QR code. Tell users which chains they can send from; on EVM chains the address is the same, while Tron and Solana each have their own.

## Step 4: Listen for settlement

The funds land in the user's wallet, so there is no ledger to credit. Use the webhook to update the user's balance and notify them. Rhino.fi sends events to your configured webhook URL with `/rhinofi-events` appended, so your endpoint needs to handle that path (see [Subscribe to webhooks](https://docs.rhino.fi/webhook/subscribe.md)). Verify each event with the SDK's `verifySignature` helper.

```ts theme={null}
// Webhook URL configured with Rhino.fi: https://your-app.com/webhooks/rhino
// Rhino.fi posts events to that URL + '/rhinofi-events'
app.post('/webhooks/rhino/rhinofi-events', async (req, res) => {
  const isValid = await sdk.api.webhook.verifySignature(req.body, req.headers['x-rhino-signature']);
  if (!isValid) return res.sendStatus(401);

  const { event } = req.body;
  if (event._tag === 'BRIDGE_EXECUTED') {
    // addressNote carries the Privy user ID set when the SDA was created
    await notifyUser(event.addressNote, `${event.amountOut} USDC added to your wallet`);
  }
  res.sendStatus(200);
});
```

## Step 5 (optional): Configure fees

Choose whether to cover deposit fees yourself, so users receive the full amount, or pass the cost on to your users. Contact your account manager to set this up; see [Advanced Fee & Limit Management](https://docs.rhino.fi/get-started/extensions/advanced-fee-management.md).

## Step 6: Monitor transaction status

Webhooks are the primary source of truth. To show a deposit history in your app, use the [deposit address history endpoint](https://docs.rhino.fi/api-reference/sda/depositaddresses/obtain-a-list-of-previous-activity-for-a-smart-deposit-address.md), which returns each deposit with its outcome and, for rejected deposits, the reason. See [Track transactions](https://docs.rhino.fi/api-integration/status-history.md).

## Operational considerations

* **Users who lose access to their wallet:** if a user can no longer access their embedded wallet, pause their SDA so new deposits aren't settled into a wallet they can't use ([pause, unpause or update deposit addresses](https://docs.rhino.fi/api-reference/sda/depositaddresses/pause-unpause-or-update-deposit-addresses.md)). Deposits to a paused SDA are not processed. In exceptional cases, such as moving users to a new wallet provider, contact your account manager to discuss changing an SDA's destination.
* **Misdirected deposits:** unsupported tokens or wrong networks are refunded by Rhino.fi support in full, typically within 24 hours on business days once a refund address is confirmed. See [how refunds on SDAs work](https://learn.rhino.fi/articles/4659122464-how-do-refunds-on-sdas-work-and-what-needs-to-be-considered).
* **Solana wallets:** to fund a Privy Solana wallet, create a second SDA with `destinationChain: 'SOLANA'` and the user's Solana address. Allow about 30 seconds after creating a Solana SDA before the first deposit.
* **Same deposit and withdrawal address:** if your compliance policy requires users to deposit to the same address they withdraw from, use the Privy wallet itself as the deposit address and bridge with a permit instead. See [non-custodial deposit addresses using Privy and Rhino.fi](https://learn.rhino.fi/articles/1711991406-non-custodial-deposit-addresses-using-privy-and-rhino).

## Reference architecture

One user → one Privy wallet → one SDA that settles into it → one webhook that updates your app. Add an SDA per extra destination chain or chain family your users need.

## In the wild: Karta

[Karta](https://rhino.fi/blog/karta-turns-stablecoins-into-spend-ready-balances) gives individuals and teams Visa cards and personal bank details, funded with stablecoins. Customers top up with USDT or USDC from Tron, Ethereum, Polygon, Base, Optimism, BNB Smart Chain, Arbitrum, Plasma or Solana, straight from an exchange or another wallet, and their deposits become one spend-ready USDT balance, typically within minutes. Top-ups run on Rhino.fi Smart Deposit Addresses, which settle into Privy wallets on Tempo. As Karta moves customers to self-custodial Privy wallets, each customer's deposit address is updated to point at their own wallet, so the address they already use keeps working.

### How a Karta customer tops up with stablecoins

**1. Tap + Top up, then choose USDT or USDC**

The customer starts from their Karta balance.

*Rhino.fi: the customer's Smart Deposit Addresses already exist and point at their Privy wallet.*

![Karta home screen with a zero USDT balance and the Top up button](https://mintcdn.com/rhinofi/cdcCfFHX7lpevFFv/images/recipes/karta-1-home.png?fit=max\&auto=format\&n=cdcCfFHX7lpevFFv\&q=85\&s=a87302eab15b309d7eafbb1d3885f516)

![Karta Top up via screen offering USDT or USDC](https://mintcdn.com/rhinofi/cdcCfFHX7lpevFFv/images/recipes/karta-2-choose-stablecoin.png?fit=max\&auto=format\&n=cdcCfFHX7lpevFFv\&q=85\&s=1b482607bf3941b433ab818a5eddcd81)

**2. Choose the network they're sending from**

Each network shows its expected arrival time; Tron is available for USDT.

*Rhino.fi: one persistent address per chain family, monitored across every supported chain.*

![Karta Select Network screen listing Arbitrum One, Base, BNB Smart Chain, Ethereum, Optimism, Plasma, Polygon and Solana](https://mintcdn.com/rhinofi/cdcCfFHX7lpevFFv/images/recipes/karta-3-select-network.png?fit=max\&auto=format\&n=cdcCfFHX7lpevFFv\&q=85\&s=f7f7868d4e41af68108c064c179c4001)

**3. Copy their deposit address or scan the QR code**

*Rhino.fi: this is the customer's own SDA; it never changes, even when their wallet does.*

![Karta USDT deposit address on Tron with QR code](https://mintcdn.com/rhinofi/cdcCfFHX7lpevFFv/images/recipes/karta-4-tron-deposit-address.png?fit=max\&auto=format\&n=cdcCfFHX7lpevFFv\&q=85\&s=5388abb09f52858eaabf34ba6855bb04)

**4. Balance topped up**

Karta notifies the customer of the incoming transfer, then confirms it and shows the new spend-ready balance.

*Rhino.fi: detects the deposit, screens it for KYT/AML, converts and settles it into the customer's wallet, and confirms by webhook.*

![Karta notifications: incoming crypto transfer of \$4.00, then \$4.00 received](https://mintcdn.com/rhinofi/cdcCfFHX7lpevFFv/images/recipes/karta-5-deposit-received.png?fit=max\&auto=format\&n=cdcCfFHX7lpevFFv\&q=85\&s=2f2b8af5041ac2718d4c32e0e8c288f2)

![Karta balance showing \$4.00 USDT after the top-up](https://mintcdn.com/rhinofi/cdcCfFHX7lpevFFv/images/recipes/karta-6-balance-topped-up.png?fit=max\&auto=format\&n=cdcCfFHX7lpevFFv\&q=85\&s=c5eb9ca24acaa27129708988a667cb1f)

Read [how Karta turns stablecoins into spend-ready balances](https://rhino.fi/blog/karta-turns-stablecoins-into-spend-ready-balances).

## Outcome

Your users can fund their Privy wallet from whichever network and stablecoin they already hold, including USDT on Tron, using one address that never changes. Funds arrive converted, screened and non-custodial, and you don't build or run any multi-chain deposit infrastructure. For integration support, contact Rhino.fi support or your account manager.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.