Skip to main content
Update account configuration (all fields optional)

Example

const update: UpdateAccountRequest = {
  threshold: 2,
  transactionSigners: ['5FHwkrdxntdK24hgQU8qgBjn35Y1zwhz1GZwCkP2UJnM']
};
const withSigners: UpdateAccountRequest = {
  signers: [{
    address: 'newSignerPublicKey',
    role: 'backup',
    permissions: ['CAN_VOTE']
  }],
  threshold: 2
};

Properties

PropertyTypeDescription
signers?AccountSigner[]Signers (replaces existing if provided)
threshold?numberApproval threshold (must not exceed signers.length, range: 1-10)
timeLock?numberTime lock in seconds (range: 1 to u32::MAX)
adminAddress?stringAdmin address (pass null to remove)
transactionSigners?string[]Signer addresses that must approve this update