Example
const update: UpdateAccountRequest = {
threshold: 2,
transactionSigners: ['5FHwkrdxntdK24hgQU8qgBjn35Y1zwhz1GZwCkP2UJnM']
};
const withSigners: UpdateAccountRequest = {
signers: [{
address: 'newSignerPublicKey',
role: 'backup',
permissions: ['CAN_VOTE']
}],
threshold: 2
};
Properties
| Property | Type | Description |
|---|---|---|
signers? | AccountSigner[] | Signers (replaces existing if provided) |
threshold? | number | Approval threshold (must not exceed signers.length, range: 1-10) |
timeLock? | number | Time lock in seconds (range: 1 to u32::MAX) |
adminAddress? | string | Admin address (pass null to remove) |
transactionSigners? | string[] | Signer addresses that must approve this update |