Files
xrpl-dev-portal/content/transactions/setregularkey.md
Jennifer Hasegawa 2c2450d7de addressed feedback
2018-02-08 18:02:46 -08:00

1.5 KiB

SetRegularKey

[Source]

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.