# TrustSet transaction now supports Deep Freeze

Ripple Custody (Wallet) enhances institutional asset control on the XRP Ledger through our latest Deep Freeze APIs. These APIs allow token issuers to implement stronger compliance controls by deep freezing a trust line, so the holder can neither send nor receive the token on it, providing enhanced regulatory compliance capabilities beyond traditional individual and global freezes.

## Use-cases

1. **Regulatory Compliance & Enforcement** - Deep Freeze enables institutions to align with evolving regulatory frameworks by preventing all asset transfers when required, ensuring on-ledger transparency while maintaining compliance.
2. **Fraud & Security Risk Mitigation** - If an account is compromised or associated with fraudulent activity, issuers can quickly restrict all asset movement, preventing unauthorized transactions and safeguarding tokenized assets.
3. **Sanctions & Blacklisted Accounts** - Financial institutions can swiftly implement sanctions compliance by blocking all token transfers from specific accounts while maintaining full on-chain traceability.
4. **Institutional Stablecoin Management** - Stablecoin issuers can meet regulatory requirements for freezing accounts involved in sanctions or compliance violations, making XRPL more attractive to regulated institutional issuers.


## Security considerations

Transactions initiated using Deep Freeze APIs are subject to the same policy engine rules as other TrustSet operations. Deep Freeze provides stronger controls than regular Individual Freeze: the holder can neither send nor receive the frozen token on that trust line.

**Important security notes:**

1. Deep Freeze applies **only to issued tokens**, never to XRP itself.
2. Unlike Individual Freeze, Deep Freeze also blocks the holder from receiving the token on the frozen trust line.
3. Deep Freeze can be both set and cleared through the API, allowing for temporary compliance holds.
4. The frozen account can still receive direct payments from the issuer.


## Limitations

## Deep Freeze Scope

### Summary

Deep Freeze affects the token your account issues on the specified trust line. Like Individual Freeze, it applies to one trust line, not to the whole account.

### Key Differences from Regular Freeze

* **Individual Freeze**: Prevents the holder from sending the token on a specific trust line. The holder can still receive it.
* **Deep Freeze**: Also prevents the holder from receiving the token on that trust line.
* **Scope**: Both apply to a single trust line. To freeze every trust line for tokens your account issues, use Global Freeze (the `GLOBAL_FREEZE` account flag).


### API Usage

Use the `SET_DEEP_FREEZE` flag to enable Deep Freeze on a trust line.
Use the `UNSET_DEEP_FREEZE` flag to disable Deep Freeze on a trust line.

## References

* **SubmitTrustSet API**
  * Ripple Custody (Wallet) API reference: [Ripple Custody (Wallet) API](/pt-br/products/wallet/api-docs/palisade-api/palisade-api)
* **XRP Ledger TrustSet Transaction**
  * XRP Ledger reference: [https://xrpl.org/docs/references/protocol/transactions/types/trustset](https://xrpl.org/docs/references/protocol/transactions/types/trustset)
* **Deep Freeze Documentation**
  * XRP Ledger Deep Freeze: [https://xrpl.org/docs/concepts/tokens/fungible-tokens/deep-freeze](https://xrpl.org/docs/concepts/tokens/fungible-tokens/deep-freeze)
  * Deep Freeze Amendment (XLS-77d): [https://dev.to/ripplexdev/deep-freeze-strengthening-institutional-asset-control-on-xrpl-2j2a](https://dev.to/ripplexdev/deep-freeze-strengthening-institutional-asset-control-on-xrpl-2j2a)