Files
xrpl-dev-portal/content/transactions/setregularkey.md
2018-01-30 17:43:17 -08:00

1.6 KiB

SetRegularKey

[Source]

A SetRegularKey transaction assigns, changes, or removes the regular key associated with an account.

For more information about regular and master keys, see Understanding Master and Regular Keys.

You can protect your master secret by assigning regular keys to an account and using them instead of the master keys to sign transactions whenever possible. If your regular keys are compromised, but the master keys are not, you can use a SetRegularKey transaction to regain control of your account.

For a tutorial on assigning regular keys 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.