Disable Master Key Pair
This page describes how to disable the master key pair of an account. You do this if the master key pair may have been compromised, or if you want multi-signing to be the only way to send transactions from your account.
- Section
- Tutorials
What you will do
You disable the master key pair for an account, then check that it is disabled. Disabling it removes the default method of authorizing transactions.
What you need
You need a basic understanding of the XRP Ledger and of cryptographic keys, and a client library such as xrpl.js. You should know how to assign a regular key pair or set up multi-signing. The account must have one of these two before its master key pair can be disabled.
The steps in short
Set up a regular key pair or a multi-signing list if the account has neither. Then send an AccountSet transaction with the SetFlag value set to asfDisableMaster, which is 4. Unlike most transactions, this one must be signed with the master key pair. Afterwards, use the account_info method and check the disableMasterKey field of account_flags in the result.
If something goes wrong
A tecNO_ALTERNATIVE_KEY result means the account has no other method of authorizing transactions enabled. Assign a regular key pair or set up multi-signing, then try again. If the account_info result looks out of date, wait at least half a second and send the same request again.
Good to know
Before you start, check that you can send transactions with your regular key pair or multi-signing list. No one can restore access to your account if something goes wrong. To turn the master key pair back on later, send a similar AccountSet transaction with the ClearFlag field instead of SetFlag. Sign it with a regular key pair or multi-signing list.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made