mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-06 17:27:57 +00:00
1.5 KiB
1.5 KiB
SetRegularKey
A SetRegularKey transaction assigns, changes, or removes the regular key associated with an account.
You can protect your account by assigning a regular key to it and using it instead of the master key to sign transactions whenever possible. If your regular key is compromised, but your master key is not, you can use a SetRegularKey transaction to regain control of your account.
For more information about regular and master keys, see Understanding Master and Regular Keys.
For a tutorial on assigning a regular key to an account, see Working with Regular Keys.
For even greater security, you can use multi-signing, but multi-signing requires additional XRP for the transaction cost and reserve.
{
"Flags": 0,
"TransactionType": "SetRegularKey",
"Account": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
"Fee": "12",
"RegularKey": "rAR8rR8sUkBoCZFawhkWzY4Y5YoyuznwD"
}
| Field | JSON Type | [Internal Type][] | Description |
|---|---|---|---|
RegularKey |
String | AccountID | (Optional) A base-58-encoded Ripple address to use as the regular key. If omitted, removes the existing regular key. |