# Get FXRP Address

> Get FXRP address using the FAssets system

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Source: https://dev.flare.network/fxrp/token-interactions/fxrp-address

## Overview[​](#overview "Direct link to Overview")

In this guide, you will learn how to get the [FXRP](/fassets/reference) address for the FAssets system. FXRP is the ERC-20 representation of XRP on the Flare network, enabling you to use XRP in smart contracts and DeFi applications.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

Before you begin, make sure you have:

-   [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit) installed and configured.
-   [Flare Network Periphery Contracts](https://www.npmjs.com/package/@flarenetwork/flare-periphery-contracts) installed in your project.
-   Basic understanding of [FAssets](/fassets/overview) and how they work.

## Understanding FXRP Address[​](#understanding-fxrp-address "Direct link to Understanding FXRP Address")

The FXRP address is the contract address of the [ERC-20 token](https://ethereum.org/developers/docs/standards/tokens/erc-20/) that represents XRP on the Flare network and is essential for:

-   Interacting with FXRP in smart contracts.
-   Transferring FXRP tokens.
-   Participating in DeFi protocols that use FXRP.

## Getting the FXRP Address[​](#getting-the-fxrp-address "Direct link to Getting the FXRP Address")

To get the FXRP address, you need to interact with the `AssetManager` contract using the [`IAssetManager`](/fassets/reference/IAssetManager) interface and call the [`fAsset`](/fassets/reference/IAssetManager#fasset) function. This function returns the address of the FAsset token contract (ERC-20) that is managed by this asset manager instance.

### Script Code[​](#script-code "Direct link to Script Code")

The following TypeScript script demonstrates how to retrieve the FXRP address:

scripts/fassets/getFXRP.ts

```
import { getAssetManagerFXRP } from "../utils/getters";// yarn hardhat run scripts/fassets/getFXRP.ts --network coston2async function main() {  const assetManager = await getAssetManagerFXRP();  const fasset = await assetManager.fAsset();  console.log("FXRP address", fasset);}main().catch((error) => {  console.error(error);  process.exitCode = 1;});
```

### Code Explanation[​](#code-explanation "Direct link to Code Explanation")

The script:

1.  Connects to the `AssetManager` contract using the [`IAssetManager`](/fassets/reference/IAssetManager) interface.
2.  Calls the [`fAsset`](/fassets/reference/IAssetManager#fasset) function to get the FXRP token address.
3.  Logs the address to the console.

info

The `getFXRPAssetManager` function is a utility function that is included in the [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit). It is used to get the FXRP Asset Manager address from the Flare Contract Registry.

### Run the Script[​](#run-the-script "Direct link to Run the Script")

To run the script, use the following command:

```
yarn hardhat run scripts/fassets/getFXRP.ts --network coston2
```

The script will output the FXRP address for the FAssets system on the Coston2 network:

```
FXRP address 0x0b6A3645c240605887a5532109323A3E12273dc7
```

Network Addresses

The FXRP address will be different depending on which network you are using.

## Using the FXRP Address[​](#using-the-fxrp-address "Direct link to Using the FXRP Address")

Once you have the FXRP address, you can:

1.  Use it in your smart contracts to interact with FXRP
2.  Add it to your wallet to track FXRP balances
3.  Use it in DeFi protocols that support FXRP

## Summary[​](#summary "Direct link to Summary")

In this guide, you learned how to get the FXRP address for the FAssets system by interacting with the `AssetManager` contract using the [`IAssetManager`](/fassets/reference/IAssetManager) interface.

What's next

To continue your FAssets development journey, you can:

-   Learn how to [mint FXRP](/fassets/developer-guides/fassets-direct-minting).
-   Understand how to [redeem FXRP](/fassets/developer-guides/fassets-redeem).
-   Explore [FAssets system settings](/fassets/operational-parameters).
