Require Destination Tags
The Require Destination Tag setting makes the XRP Ledger reject any payment to your address that does not carry a destination tag. This guide shows how to turn the setting on for your account.
- Section
- Tutorials
What you will do
You enable the RequireDest flag on your account. The setting is made for addresses that hold balances for several people or purposes. A destination tag tells such an address whom to credit, and the setting stops payments that forget it.
What you need
You need a funded XRP Ledger account with an address, a secret key and some XRP. For this guide you can get test credentials on Testnet. You also need a connection to the network, and public servers are fine for testing. The page has examples in JavaScript with xrpl.js and in Python with xrpl-py. Do not use the same addresses on Testnet or Devnet and on Mainnet.
The steps in short
Get credentials and connect to the network. Then send an AccountSet transaction with the SetFlag field set to the asfRequireDest value, which is 1. You prepare the transaction, sign it with your secret key and submit it. Wait for validation, which may take 4 to 7 seconds. Then check your account's settings to confirm the flag is enabled.
Testing the setting
You can send test payments from a different address. A payment with a destination tag should succeed. A payment without one should fail with the error code tecDST_TAG_NEEDED.
Good to know
The meaning of each tag is up to the system built on top of the XRP Ledger. The ledger cannot know whether a tag is valid in your system. So you must still be ready to receive payments with the wrong destination tag.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made