See the canonical spec:
.TypeScriptimport { Client, Wallet } from 'xrpl'; async function setRegularKey(): Promise<void> { const client = new Client('wss://honeycluster.dev'); await client.connect(); const wallet = Wallet.fromSeed('s...'); const prepared = await client.autofill({ TransactionType: 'SetRegularKey', Account: wallet.address, RegularKey: 'r...regular', }); const signed = wallet.sign(prepared); const res = await client.submitAndWait(signed.tx_blob); console.log(res); await client.disconnect(); } setRegularKey().catch(console.error);
| Field | Type | Required | Description |
|---|---|---|---|
Account | String | Yes | The address of the account setting the regular key |
RegularKey | String | No | The new regular key address (omit to remove) |
Usage:
To set a regular key: Provide the RegularKey field
To remove the regular key: Omit the RegularKey field
Note:
The master key pair can always override the regular key
Useful for hot/cold wallet setups and multi-signature schemes
The regular key can sign transactions for this account
If no regular key is set, only the master key can sign transactions
Sets a regular key pair for signing transactions
RegularKey specifies the new public key (omit to remove)
Useful for hot/cold wallet setups and multi-signature schemes
The master key pair can always override the regular key
Always use autofill to set fees and sequence safely when using the XRPL client library