Key takeaways
- A single contract,
AccountPermissionUpdateContract, rewrites an account's owner, witness, and active permissions. Together they are the account's complete key-set, the keys that can sign for it. - The update is an all-or-nothing transaction that carries the whole desired permission set and overwrites what was there. There is no edit one field, and you resubmit everything or lose what you left out.
- Each permission lists up to five keys with weights and a threshold the weights must cover, and the node refuses a threshold above their sum. The node cannot check who holds the keys, so it accepts a set naming an address nobody can sign for. An account can lock itself out in one transaction.
- Because the transaction is signed, fee-bearing, and complete, a permission update is a legible control event on-chain, even when its effect is not what the signer meant.
While the multi-signature chain parameter is on, a new TRON account gets a default owner permission and a default active permission. Each holds one key, the account’s own, with weight one and threshold one. An account that never sends a permission update keeps them. That single key authorizes every transaction it sends, and the permission structure is a formality.
When an account does change its permissions, one contract type does the job. The transaction replaces the account’s entire authorization structure at once. Both the forensic value and the danger come from that.
This article covers the mechanic: the contract itself, what a permission is made of, and how a valid update can still be a fatal one. It does not cover how to read a permission structure as a control signal, which is the subject of Same-Permission-Key Detection. The subject here is the transaction that writes it.
The contract that rewrites control
AccountPermissionUpdateContract is contract type 46 in the protocol. Its job is to set an account’s permissions, and its fields are the permissions themselves:
| Field | What it carries |
|---|---|
owner_address | The account being modified. |
owner | The new owner permission. The protocol marks it “Empty is invalidate”, so you cannot submit without one. |
witness | The new witness permission. It “Can be empty”, and only accounts registered as Super Representative candidates use it. |
actives | The new active permissions, as a list. Also “Empty is invalidate.” |
The account’s stored state mirrors these fields exactly: an owner_permission, a witness_permission, and a list of active_permission. The update contract is a whole-state assignment. The permissions the account will have after it lands are the permissions inside the contract, and nothing else. The account model describes what those three permission slots mean. This contract is the only transaction that rewrites an account’s owner and active permissions. Registering as a Super Representative candidate also writes permissions. The node sets a default witness permission, and default owner and active permissions if the account has none. It writes these defaults only while the multi-signature chain parameter is on, and committee proposal 17 switched that parameter on, effective March 21, 2019.
What the contract writes
Each permission the contract carries is a compact structure. The account-model article covers the full model: how keys, weights, and thresholds resolve, and what an operations bitmask allows. The update writes these pieces:
| Element | Meaning |
|---|---|
type / id | Owner (id 0), Witness (id 1), or Active (id 2 and up). |
threshold | The signing weight an action under this permission requires. |
keys | Up to five addresses, each with a weight; a witness permission holds exactly one. |
operations | Active permissions only. A 32-byte bitmask, one bit per contract type. |
permission_name | A human label, stored on-chain but not load-bearing. |
The owner and active permissions differ in one way that matters for the lockout section below. An active permission’s operations mask can be scoped to a narrow set of contract types. The owner permission has no such limit and can authorize anything, including the next AccountPermissionUpdateContract.
All-or-nothing: the whole set, every time
The update overwrites, and that surprises people. The developer documentation, in the revision archived on October 12, 2025, was explicit: “This interface will override the original account permissions, so even if you only want to modify the owner permission, you still need to configure the witness (if it is a witness account) and active permissions.” On November 17, 2026 the live page said the contract “replaces the complete permission configuration”. The java-tron reference calls it “an ‘all-or-nothing’ update” and warns that “even if modifying a single permission, the full permission set must be resubmitted to prevent accidental loss of access.”
There is no partial update. To add one key to an active permission, you resubmit the owner permission, every active permission, and the witness permission if the account is registered as a Super Representative candidate. What you submit is the complete desired end-state, with the one change folded in. Whatever you leave out is gone.
The transaction also carries a fee. On November 17, 2026, TronGrid’s chain parameters showed a fee of 100 TRX to modify account permissions. It is a flat TRX fee, charged on top of the transaction’s normal Bandwidth cost. It is set by a governance chain parameter, which means a Super Representative proposal can change it.
How an update locks an account out
The all-or-nothing design has a failure mode that is invisible in the static permission picture. The node refuses a permission whose threshold exceeds the combined weight of its keys (sum of all key's weight should not be less than threshold), so that state cannot be written. The check was already present at the Odyssey-v3.5 tag (February 2019). The lockout an update can write passes the arithmetic. It is a key list whose weights cover the threshold, naming an address whose private key nobody holds. The node cannot verify key custody, and a routine change can write that state by accident.
Because every update resubmits the entire set, a permission survives only if you re-include it correctly. Replace your own key in the owner permission with an address you do not hold, and the node accepts the transaction, because its keys and weights pass validation. You can no longer sign under the owner permission. Dropping your key without a replacement does not get that far in two common cases. On a default single-key account, the node refuses the empty key list (key's count should be greater than 0). On a 2-of-2 whose threshold is left alone, the weight check refuses the one key that remains. Keeping your key is no protection either if it cannot meet the threshold alone, and one key of a 2-of-3 owner permission cannot.
Do this to an active permission and that path is no longer yours. If another party holds the replacement key, the permission stays live and now belongs to them. They can spend within its mask, and the network’s default mask, as read on November 17, 2026, includes transfers. Do it to the owner permission and what happens next depends on who, if anyone, can still meet a threshold.
- Who can change the permissions now. Whoever can meet the owner permission’s threshold can send the next
AccountPermissionUpdateContract. So can whoever holds keys meeting the threshold of an active permission whoseoperationsmask has bit 46 set. The default active mask read on the same date leaves that bit clear. The test is the threshold, and your key appearing in the list is not enough on its own. - A key someone else holds. Replace your key with an address another party controls and you cannot change the set yourself unless you hold a bit-46 active permission. If that party’s key meets the owner threshold on its own, they have full control of the account. The owner permission authorizes anything, so they can move the funds directly at any moment, and they can remove any active permission you still hold. Swapping one key of a 2-of-3 gives them no such sole control. They can restore you, but nothing makes them. If an active permission you hold can still send funds, moving them is urgent. It is a race against the new owner, who can spend first or remove that permission.
- A key nobody holds. Name an address with no private key behind it, so that the keys left cannot meet the threshold. Your key at weight 1 beside an unheld key at weight 1, with threshold 2, will do it. The Developer Hub’s rule then applies as it stands: “If you cannot obtain signatures that meet the owner permission’s threshold and no usable active permission allows permission updates, the account’s permissions cannot be changed again.” That lockout is permanent, but it does not by itself strand the funds. An active permission whose keys are held and whose mask allows transfers can still send, and with no owner left to sign, nothing can remove it.
Whichever route is open, the account must also hold the update fee. On November 17, 2026 that was 100 TRX, plus 1 TRX if two or more signatures sign, on top of the transaction’s Bandwidth cost. Without it the update fails on insufficient balance.
A full resubmission erases whatever it leaves out, and that is the “accidental loss of access” the documentation warns about. The swap cases above come from the same all-or-nothing rule. One careless full resubmission is enough to write either.
Reading a permission change
Permission changes are signed and fee-bearing, and each one stands until a later update replaces it, and only an update signed to one of the account’s current thresholds can. When an AccountPermissionUpdateContract is in an account’s history, keys that could sign for the account signed it at that block, and the control arrangement changed there. The signers might add a key, raise a threshold, or hand authority to a new address. An investigator can see the signature. Whether the holder meant to send a permission update, or meant its result, is a separate question. A holder can be induced to sign a crafted update, and the lockout above is a result nobody meant.
The transaction is also a complete record of the handover. Because the contract carries the full new key-set, that set is the after-state, with the addresses that can now sign, their weights, and the threshold they sign against. Compare that to the before-state and you have what changed. A single-key account may have become a multi-sig, or the signers may have swapped one owner key for another.
Two smaller reads come with it. The operations mask on each active permission records which contract types a delegated key may run. A key granted broad operations is a different arrangement from one scoped to a single contract, and the mask is how to tell them apart. An investigator cannot recognize a self-locked account from its permission state. An owner permission naming a key nobody holds looks the same as one naming a key somebody does, since the node accepts only sets whose weights cover the threshold. On-chain, the lockout leaves the update that wrote it, and that update names the unheld key the same way it would name a held one. An account locked out of its owner permission can still send under an active permission whose keys are held, within that permission’s mask.
An investigator reads the permission structure to see who can sign for an account, and the latest permission update to see when that changed. Because the update carries the full set, the whole new arrangement is in that one transaction.
Sources
- account_contract.proto — tronprotocol/protocol — the
AccountPermissionUpdateContractmessage:owner_address,owner(“Empty is invalidate”),witness(“Can be empty”), andactives(“Empty is invalidate”). - Tron.proto — tronprotocol/protocol — the
Permissionmessage (type,id,threshold,parent_id,operations“1 bit 1 contract”,keys), theKeymessage (address,weight), and theOwner/Witness/Activepermission-type enum. - Account Permission Management — TRON Developer Hub — the override behavior, permission IDs, up to 8 active permissions, and the threshold rule, stated as “The sum of all authorized address weights must be at least the threshold”; the note that “passing validation does not mean the corresponding private keys are usable”; and the recovery path “An active permission can also authorize it when the transaction selects that permission and its
operationsfield allows permission updates (AccountPermissionUpdateContract, ID 46)”, with its limit: “If you cannot obtain signatures that meet the owner permission’s threshold and no usable active permission allows permission updates, the account’s permissions cannot be changed again.” TRON rewrote the page in place after our read of 17 November 2026, and, by the page’s metadata, last updated it on 20 November 2026. The four quotations above are as read on 26 November 2026. The page is intact, and TRON has rewritten it in place more than once, so the revision captured on 26 November 2026 is also cited below. On 17 November 2026 the live page gave the override warning — “The contract replaces the complete permission configuration: even if you only want to change one active permission, you must submit the new owner permission and the complete active-permission list.” — but no longer in the words quoted in the body, so the archived revision of 12 October 2025 below is cited for the wording. - Account Permission Management — TRON Developer Hub, archived 2025-10-12 — the revision carrying the override wording quoted in the body: “This interface will override the original account permissions, so even if you only want to modify the owner permission, you still need to configure the witness (if it is a witness account) and active permissions.” TRON has since rewritten the live page in place, so an archived revision carrying this wording is cited alongside it.
- Account Permission Management — TRON Developer Hub, archived 2026-11-26 — the revision read on 26 November 2026, captured so that a later rewrite leaves its wording on record. It carries the limit the body quotes, “If you cannot obtain signatures that meet the owner permission’s threshold and no usable active permission allows permission updates, the account’s permissions cannot be changed again.”
- Account Permission Management — java-tron documentation — the “all-or-nothing” characterization, up to five keys per permission, the 32-byte little-endian
operationsbitmask, and the 100 TRX fee to modify account permissions. - TronGrid — wallet/getchainparameters — the dated fee reading:
getUpdateAccountPermissionFee100,000,000 sun (100 TRX) andgetMultiSignFee1,000,000 sun (1 TRX), read on 17 November 2026. - tronprotocol/java-tron — AccountPermissionUpdateActuator at GreatVoyage-v4.8.2.4 — the validation a node applies to every permission update, read at the commit tagged GreatVoyage-v4.8.2.4 (October 2026): at most 5 keys per permission and at least one (
key's count should be greater than 0), at least one active permission, and the rejection of any permission whose key weights sum to less than its threshold. The same weight-sum check is in the file at the Odyssey-v3.5 tag (February 2019). Each rule was also confirmed with an unsignedwallet/accountpermissionupdatedry run against mainnet on 17 November 2026; nothing was signed or broadcast. - tronprotocol/java-tron — TransactionTrace at commit b33eed8 — why the update fee sits on top of a Bandwidth cost and no Energy cost, read on 20 November 2026. The constructor sorts each transaction by its contract type.
TriggerSmartContractandCreateSmartContractare the two types that run in the virtual machine, and every other type,AccountPermissionUpdateContractincluded, falls toTRX_PRECOMPILED_TYPE. The node bills Energy for the two virtual-machine types only, andpayreturns at once for the rest. In AccountPermissionUpdateActuator at the same commit,executetakes the flat fee from the owner’s balance and runs no contract code. The Developer Hub page gives one sentence for both fees and names Bandwidth or Energy. The multi-signature fee can also fall on a contract call, which does use Energy. - smart_contract.proto — tronprotocol/protocol — the file that declares
CreateSmartContractandTriggerSmartContract, the two contract types the node runs in the virtual machine. Read at commit8432becon 20 November 2026. - tronprotocol/java-tron — DynamicPropertiesStore at GreatVoyage-v4.8.2.4 — the network default for a new account’s active-permission
operationsmask,7fff1fc0033e…, whose bit 46 is clear, beside the available-contract-type mask7fff1fc0037e…, whose bit 46 is set. - tronprotocol/java-tron — WitnessCreateActuator at GreatVoyage-v4.8.2.4 — the other transaction that writes permission state to an existing account:
executecallssetDefaultWitnessPermissiononly whengetAllowMultiSignis 1, and that method in AccountCapsule sets a default witness permission and, if the account has none, default owner and active permissions. - TronGrid — wallet/getproposalbyid?id=17 — the on-chain record of the proposal that switched multi-signature on: parameter 20 set to 1, created 18 March 2019, state APPROVED, expiry 21 March 2019 (queried 19 November 2026). Parameter 20 is
ALLOW_MULTI_SIGNin java-tron’s ProposalUtil at GreatVoyage-v4.8.2.4.