# Freeze a Trust Line This tutorial shows the steps to [freeze an individual trust line](/es-es/docs/concepts/tokens/fungible-tokens/freezes#individual-freeze). The issuer of a token in the XRP Ledger may freeze the trust line to a particular counterparty if that account is engaged in suspicious activity. As a reminder, freezes only apply to issued tokens, not XRP. ## Prerequisites - You need a connection to the XRP Ledger network. As shown in this tutorial, you can use public servers for testing. - You should be familiar with the Getting Started instructions for your preferred client library. This page provides examples for the following: - **JavaScript** with the [xrpl.js library](https://github.com/XRPLF/xrpl.js/). See [Get Started Using JavaScript](/es-es/docs/tutorials/javascript/build-apps/get-started) for setup steps. - This tutorial assumes **you have already [issued a token](/es-es/docs/tutorials/how-tos/use-tokens/issue-a-fungible-token)** in the XRP Ledger. - You **cannot** have enabled the [No Freeze setting](/es-es/docs/concepts/tokens/fungible-tokens/freezes#no-freeze), which gives up your ability to freeze individual trust lines. script script ## Example Code Complete sample code for all of the steps of this tutorial is available under the [MIT license](https://github.com/XRPLF/xrpl-dev-portal/blob/master/LICENSE). - See [Code Samples: Freeze](https://github.com/XRPLF/xrpl-dev-portal/tree/master/_code-samples/freeze/) in the source repository for this website. ## Steps ### 1. Get Credentials To transact on the XRP Ledger, you need an address and secret key, and some XRP. If you use the best practice of having separate ["cold" and "hot" addresses](/es-es/docs/concepts/accounts/account-types), you need the keys to the *cold address*, which is the **issuer** of the token. Get Testnet credentials div Ripple provides the [Testnet and Devnet](/es-es/docs/concepts/networks-and-servers/parallel-networks) for testing purposes only, and sometimes resets the state of these test networks along with all balances. As a precaution, **do not** use the same addresses on Testnet/Devnet and Mainnet. ### 2. Connect to the Network You must be connected to the network to submit transactions to it. The following code shows how to connect to a public XRP Ledger Testnet server a supported [client library](/docs/references/client-libraries): JavaScript // You can also use a