Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article covers ACP77, which extends Avalanche's Subnet model to support sovereign Layer 1 networks without requiring their validators to validate the Primary Network.
This explanation translates, summarizes, and expands on the following proposal.
I have also written about other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ACP77 proposes three changes to improve the accessibility and flexibility of creating and operating Subnets.
Separating Subnet validators from Primary Network validators
Under the legacy model, a Subnet validator must first validate the Primary Network, stake at least 2000 AVAX, synchronize the X-, P-, and C-Chains, and participate in their consensus. The proposal removes this prerequisite, eliminating the need for L1 validators to fully synchronize and participate in Primary Network validation. This removes the 2000 AVAX staking prerequisite for L1 validators and reduces Primary Network synchronization to the necessary subset (partial synchronization).
Moving validator-set management from the P-Chain to the L1
Responsibilities previously handled through the P-Chain, such as registering and updating validators and defining reward policies, move to the individual network. This allows each L1 to define its own staking collateral and reward management rules, including the use of ERC20 tokens, ERC721 tokens, or other assets.
Introducing continuous P-Chain fees for L1 validators
The proposal replaces the large upfront cost associated with the legacy Subnet model with a mechanism that charges continuous fees for maintaining active L1 validators on the P-Chain. A recurring, variable fee structure reduces the upfront barrier and allows operating costs to scale with network operation.
Networks created through this new process have greater functionality and sovereignty than legacy Subnets and do not require overlap with the Primary Network validator set. The community calls these networks Avalanche Layer 1s (L1s), while continuing to use Subnet for networks created through the legacy process. The proposal supersedes ACP13 and incorporates some of its ideas.
For more about ACP13, see the following article.
[ACP13] Understanding Subnet-Only Validators
Motivation
High initial staking and hardware requirements create barriers to entry
Under the legacy model, validating a Subnet requires first becoming a Primary Network validator. Each node operator must stake at least 2000 AVAX (approximately $70,000 at the time of the proposal's example). Many Subnets aim to launch with at least eight validators, requiring a combined 16,000 AVAX (approximately $560,000 in the same historical example). Subnet validators also need sufficient resources to synchronize the X-, P-, and C-Chains and participate in their consensus, for example 8 vCPUs, 16 GB RAM, and 1 TB storage. These requirements are additional to the Subnet's own resource needs, increasing both initial investment and operating costs.
| Legacy prerequisite | Example |
|---|---|
| Initial stake | 2000 AVAX per validator (16,000 AVAX for an eight-validator Subnet) |
| Primary Network requirements | Full synchronization and consensus participation for the X-, P-, and C-Chains |
| Hardware requirements (example) | 8 vCPUs / 16 GB RAM / 1 TB storage for the Primary Network alone |
| Impact | High initial costs and additional operating resources on top of Subnet requirements |
The proposal aims to lower fixed upfront costs, simplify network launches, and enable flexible scaling as demand grows.
Regulatory restrictions prevent some entities from launching Subnets
Entities prohibited by applicable regulations from validating permissionless smart-contract networks such as the C-Chain, including some regulated financial institutions, cannot avoid Primary Network validation under the legacy model and therefore cannot launch Subnets under that model. This limits use cases in which real-world asset (RWA) issuers participate in the Avalanche ecosystem through dedicated networks and connect them to the C-Chain through AWM or Teleporter. Removing mandatory Primary Network validation makes it easier for organizations with regulatory requirements to build and operate their own networks.
Mutual resource pressure between Subnets and the Primary Network may affect stability
A sudden increase in workload on a Subnet with many validators, without adequate metrics or resource planning, can adversely affect Primary Network stability. Underprovisioned Primary Network validators also operating a high-throughput Subnet may experience out-of-memory crashes, degraded disk performance, or insufficient CPU time for P-, X-, and C-Chain validation. Conversely, a Primary Network issue or unexpected behavior may interrupt a Subnet sharing the same validator resources. Separating validators and introducing continuous fees reduces these interdependencies and supports greater network independence and stability.
Upfront fixed costs discourage new entrants
Under the legacy model, the cost of validating the Primary Network does not rise directly with Subnet transaction traffic, but the initial validator setup requirements, including the 2000 AVAX stake and hardware resources, create a substantial barrier. Many projects facing uncertain demand prefer to start small and increase investment as adoption grows. The upfront requirements make this approach difficult. By contrast, some L2s incur external-chain data availability and security costs that increase with activity. Subnets provide their own security and data availability, so growing transaction processing and network usage primarily requires additional CPU, memory, and storage resources. ACP77 introduces continuous fees tied to active validator operation, reducing the concentration of costs at launch.
Limitations of Elastic Subnets introduced in Banff
Elastic Subnets, introduced in Banff, enabled proof of stake using a Subnet-specific token and rewards based on uptime. However, the staking asset had to be an Avalanche Native Token (ANT) issued on the X-Chain and locked on the P-Chain.
Rewards were distributed on the P-Chain, and the reward curve defined by TransformSubnetTx could not subsequently be changed.
The proposal notes that no Elastic Subnets were operating on Mainnet at the time, illustrating opportunities to improve the permissionless Subnet design.
ACP77 moves validator-set and reward management to the L1, allowing more flexible choices of collateral, including ERC20, ERC721, or other assets, and configurable reward policies.
Banff is an Avalanche network upgrade (hard fork). Avalanche uses place names as upgrade codenames; Banff introduced Elastic Subnets. Elastic Subnets allowed networks to use their own proof-of-stake tokens and distribute validator rewards according to the parameters established for the network.
TransformSubnetTx is a P-Chain transaction for changing a Subnet's configuration.
It was used to enable Elastic Subnets and served the following purposes.
- Convert a Subnet into an Elastic Subnet.
- Define the reward distribution rules (reward curve). A reward curve specifies how rewards vary according to factors such as stake and uptime.
- Once configured, the reward curve cannot be changed.
Naming
Historically, an Avalanche Subnet has meant a network validated by a subset of the Primary Network's validators. With ACP77's new creation process, a new network's validator set need not overlap with the Primary Network validator set. The new design also provides greater functionality and sovereignty. To distinguish the two models, the community calls networks created using the new flow Avalanche Layer 1s (L1s) and retains Subnet for those using the legacy flow. This terminology clarifies discussions about design, operation, and regulatory requirements.
Relationship to ACP13
ACP77 supersedes ACP13 and incorporates some of its ideas. It takes a broader approach by separating validators, delegating management authority, and introducing continuous fees.
Diagrams
ACP13 flow
flowchart TB
subgraph Old[ACP13 flow]
A["Primary Network\n(Full X/P/C sync and consensus)"] -->|Prerequisite| B["Subnet validator"]
A -->|Managed by P-Chain| C["Validator set"]
C -->|ANT lock &\nTransformSubnetTx| D["Rewards: distributed on P-Chain"]
B -->|Initial requirement| E["2000 AVAX stake"]
end
ACP77 flow
flowchart TB
subgraph New[ACP77 flow]
F["Subnet validator"] -. Separate .-> G["Primary Network\nPartial sync (minimum required)"]
F -->|ERC-20 / ERC-721 / other assets| H["Staking & reward management\n(Implemented and operated by the L1)"]
G -->|Continuous fees| I["P-Chain fees\n(Continuous Subnet Staking)"]
end
Specification
High-level design
An L1 specifies a validator manager. The manager is identified by a blockchain ID and an address on that blockchain. To add or remove an L1 validator or change its weight, the validator manager sends a Warp message to the P-Chain.
The P-Chain verifies Warp messages through the PlatformVM.
If validators representing at least 67% of the source chain's weight (sourceChainID) participate in the BLS aggregate signature, the message satisfies the signature threshold for updating the L1 validator set, using the same threshold as the C-Chain.
A future proposal may allow the threshold to be configured per L1.
The P-Chain can also produce confirmation Warp messages so third parties can verify the update. L1 validators do not need to fully synchronize or participate in Primary Network consensus; they synchronize the P-Chain. To remain active, they pay continuous fees denominated in $AVAX.
Warp verification requirements and payloads
Verification requirements (signature threshold)
For the P-Chain to accept a Warp message, the BLS aggregate signature must represent at least 67% of the validator weight of sourceChainID.
This is the same threshold used by the C-Chain.
A future proposal may introduce per-L1 threshold configuration.
Node ID representation
Node IDs in messages are encoded as variable-length byte strings. This accommodates potential future node ID formats.
Payload types and purposes
The specification introduces the following four Warp payload types.
It does not prescribe how signatures must be collected; ACP118's SignatureRequest is mentioned as a possible implementation.
| Payload | Direction | Purpose |
|---|---|---|
SubnetToL1ConversionMessage |
P-Chain → validator manager | Communicates the initial validator set following conversion from a Subnet to an L1 |
RegisterL1ValidatorMessage |
L1 → P-Chain | Requests registration of a new validator |
L1ValidatorRegistrationMessage |
P-Chain → consumer | Proves that a registration exists or cannot subsequently become valid |
L1ValidatorWeightMessage |
Bidirectional | Requests or confirms validator weight updates and removal (weight=0) |
Communicating the initial validator set
After conversion from a Subnet to an L1 is accepted, the initial L1 validator set is communicated in a form that third parties can verify.
The Warp message is SubnetToL1ConversionMessage, with the P-Chain ID as sourceChainID and an empty sourceAddress.
The conversionID identifier is the SHA256 hash of the complete ConversionData described below.
The procedure is as follows.
- The P-Chain verifies and accepts
ConvertSubnetToL1Tx. - A P-Chain confirmation of the initial set is available as a
SubnetToL1ConversionMessage. - The L1 validator manager or other consumers obtain the signed Warp message, verify the initial set, and update their state.
ValidatorData
| Field | Type | Size |
|---|---|---|
nodeID |
[]byte |
4 + len(nodeID) |
blsPublicKey |
[48]byte |
48 |
weight |
uint64 |
8 |
| Total | 60 + len(nodeID) |
ConversionData
| Field | Type | Size |
|---|---|---|
codecID |
uint16 |
2 |
subnetID |
[32]byte |
32 |
managerChainID |
[32]byte |
32 |
managerAddress |
[]byte |
4 + len(managerAddress) |
validators |
[]ValidatorData |
4 + sum(validatorLengths) |
| Total | 74 + len(managerAddress) + sum(validatorLengths) |
codecID=0x0000 is fixed.
managerChainID and managerAddress identify the validator manager.
validators is the initial set of registered L1 validators subject to continuous fees while active.
AddressedCall (conversion notification payload)
| Field | Type | Size |
|---|---|---|
codecID |
uint16 |
2 |
typeID |
uint32 |
4(0x00000000) |
conversionID |
[32]byte |
32 |
| Total | 38 |
Requesting registration of a new validator
To add a validator, the validator manager authorizes a RegisterL1ValidatorMessage, which is included in a RegisterL1ValidatorTx submitted to the P-Chain.
The message contains nodeID, blsPublicKey, weight, the owner of remaining balance refunds (remainingBalanceOwner), the authority for disabling the validator (disableOwner), and an expiry (expiry).
Procedure
- A node operator wishing to become a validator registers the required information under the L1's rules, for example by registering it in a contract on an EVM-compatible L1 and generating a Warp message.
- The registration message authorized by the validator manager is included in a
RegisterL1ValidatorTxsubmitted to the P-Chain. - The P-Chain verifies the signature and contents and updates the L1 validator set if all conditions are satisfied.
- A confirmation Warp message,
L1ValidatorRegistrationMessagewithregistered=true, can then be obtained from the P-Chain.
Replay protection and expiration
The validationID is uniquely derived from the SHA256 hash of AddressedCall.Payload.
A previously used validation ID cannot be reused.
The expiry must be within 24 hours of the time the registration transaction is accepted on the P-Chain. Expired replay-protection records can be removed from P-Chain state once safe to do so.
PChainOwner
The following table defines PChainOwner, used by remainingBalanceOwner and disableOwner.
| Field | Type | Size |
|---|---|---|
threshold |
uint32 |
4 |
addresses |
[][20]byte |
4 + 20 * len(addresses) |
| Total | 8 + 20 * len(addresses) |
The following requirements must be satisfied for the P-Chain to accept the owner structure.
- If
threshold==0,addressesmust be empty. A zero threshold requires no signers, so no addresses need to be listed. threshold<=len(addresses)must hold. The required number of signatures cannot exceed the number of listed addresses.addressesmust be sorted in ascending order without duplicates. Duplicates could cause the same signer to be counted multiple times. Sorting makes the representation deterministic and simplifies validation. Ascending order means lexicographic byte ordering: compare each 20-byte value from its first byte, using byte values from 0x00 through 0xFF, with the smaller value at the first differing position ordered first. Values are identical if all bytes match.
A message containing a PChainOwner that violates any of these rules is invalid.
AddressedCall (registration request payload)
| Field | Type | Size |
|---|---|---|
codecID |
uint16 |
2 |
typeID |
uint32 |
4(0x00000001) |
subnetID |
[32]byte |
32 |
nodeID |
[]byte |
4 + len(nodeID) |
blsPublicKey |
[48]byte |
48 |
expiry |
uint64 |
8 |
remainingBalanceOwner |
PChainOwner |
8 + 20 * len(addresses1) |
disableOwner |
PChainOwner |
8 + 20 * len(addresses2) |
weight |
uint64 |
8 |
| Total | 122 + len(nodeID) + 20 * (len(addresses1)+len(addresses2)) |
Proving registration status
The P-Chain can provide a confirmation Warp message, L1ValidatorRegistrationMessage.
It reports registered=true when the validation ID exists in the validator set, and registered=false when the ID is absent and cannot subsequently be registered.
For a not-yet-registered validation ID whose expiry remains in the future, the P-Chain does not provide a negative registration confirmation.
| Field | Type | Size |
|---|---|---|
codecID |
uint16 |
2 |
typeID |
uint32 |
4(0x00000002) |
validationID |
[32]byte |
32 |
registered |
bool |
1 |
| Total | 39 |
Requesting weight updates and removal
To change an existing validator's weight or remove it by setting weight=0, submit an L1ValidatorWeightMessage through SetL1ValidatorWeightTx for P-Chain processing.
The P-Chain applies the instruction and can provide a confirmation of the result using the same message type.
Possible uses include increasing weight when effective stake grows through delegation or rewards, decreasing weight in response to misconduct, and removing inactive validators.
Requirements
nonce>=minNoncemust hold. Nonces need not be consecutive, but cannot fall below the minimum.- If
minNonce==MaxUint64, requirenonce==MaxUint64andweight==0to prevent the validator from becoming impossible to remove. - Removal with
weight==0must not remove the final validator of the set, protecting against complete loss of the validator set.
State transitions
- When an update with
weight!=0is accepted, update the weight and advanceminNoncetononce+1. - When removal with
weight==0is accepted, remove the correspondingvalidationIDandminNoncefrom P-Chain state and refund the unusedBalancetoRemainingBalanceOwnerin a single UTXO.
| Field | Type | Size |
|---|---|---|
codecID |
uint16 |
2 |
typeID |
uint32 |
4(0x00000003) |
validationID |
[32]byte |
32 |
nonce |
uint64 |
8 |
weight |
uint64 |
8 |
| Total | 54 |
New P-Chain transactions
Two conditions are required for operation as a permissionless L1 under this design.
First, the Owner keys defined in CreateSubnetTx must not directly control the new validator set.
Second, validator-set updates must be possible through Warp messages.
To support this, the proposal introduces five P-Chain transaction types.
ConvertSubnetToL1Txconverts a Subnet into an L1.RegisterL1ValidatorTxregisters a new validator.SetL1ValidatorWeightTxchanges an existing validator's weight or removes the validator.DisableL1ValidatorTxtemporarily disables a validator.IncreaseL1ValidatorBalanceTxadds funds to a validator's balance.
After conversion, these transactions support consistent validator-set management through Warp messages.
ConvertSubnetToL1Tx(Subnet→L1)
This transaction converts a Subnet into an L1.
The validator manager responsible for managing the L1 validator set is identified by a blockchain ID and an address.
The configuration requires authorization by the original Owner defined in CreateSubnetTx.
After conversion is accepted, CreateChainTx and AddSubnetValidatorTx are no longer available for that Subnet.
The Owner retains only the authority to remove legacy validators added through AddSubnetValidatorTx by using RemoveSubnetValidatorTx.
Existing legacy validators can remain until their specified End times. Once they have all left, the Owner loses its remaining authority over them.
The validator set is subsequently managed through mechanisms such as RegisterL1ValidatorTx and SetL1ValidatorWeightTx.
Each initial L1 validator receives a validation ID.
It is defined as SHA256(subnetID(32B) || validatorIndex(4B)).
The P-Chain makes a signed SubnetToL1ConversionMessage available, identifying the conversion by conversionID, the SHA256 hash of ConversionData.
This enables third parties to verify and track the initial validator set.
The implementation types are shown below.
type PChainOwner struct {
Threshold uint32
Addresses []ids.ShortID // 20 bytes each; unique and sorted
}
type L1Validator struct {
NodeID []byte
Weight uint64
Balance uint64
Signer signer.ProofOfPossession // BLS public key and PoP
RemainingBalanceOwner PChainOwner
DisableOwner PChainOwner
}
type ConvertSubnetToL1Tx struct {
BaseTx
Subnet ids.ID
ChainID ids.ID
Address []byte
Validators []L1Validator
SubnetAuth verify.Verifiable
}RegisterL1ValidatorTx (registering a new validator)
This transaction adds a validator to an L1.
It contains the following three elements.
BalanceInitial fee balance. The amount is specified within the funds available from transaction inputs after outputs and fees.MessageTheRegisterL1ValidatorMessageWarp message. Contains the information about the node to be registered.SignerA 96-byte proof of possession. Proves possession of the private key corresponding toblsPublicKey.
type RegisterL1ValidatorTx struct {
BaseTx
Balance uint64 // <= sum(inputs) - sum(outputs) - TxFee
Signer [96]byte
Message warp.Message // RegisterL1ValidatorMessage
}Processing after acceptance
- The new validator receives
validationID = SHA256(AddressedCall.Payload). - The P-Chain initializes
minNonce=0for subsequent weight-update validation throughSetL1ValidatorWeightTx. - Reusing the same validation ID is prohibited for replay protection.
- The registration message's expiry is limited to 24 hours, allowing expired replay-protection records to be discarded when no longer needed.
Registration confirmation
Once registration is valid, the P-Chain can attest to it with an L1ValidatorRegistrationMessage carrying registered=true.
Conversely, it can attest to non-registration with registered=false when the ID is absent and cannot be registered, for example after expiry.
However, it does not provide false for a pending registration that remains within its expiry window.
Example use case
An EVM-compatible L1 could use the following design. A node operator registers information in a smart contract, and the contract determines the validator's weight using the amount of tokens staked. An authorized Warp message is generated from this information and submitted to the P-Chain to register the validator.
SetL1ValidatorWeightTx (weight updates and removal)
This transaction changes an existing validator's weight or removes it by specifying weight=0.
type SetL1ValidatorWeightTx struct {
BaseTx
Message warp.Message // L1ValidatorWeightMessage
}Use cases
- Increase weight when stake grows through delegation or rewards.
- Decrease weight in response to misconduct.
- Remove a long-inactive validator by specifying
weight=0.
Removal
Removal with weight=0 refunds the unused fee balance and deletes the validator's corresponding entry from P-Chain state.
An L1 validator has no explicit EndTime; permanent removal requires the weight-zero operation.
Validation requirements
- The
noncemust be at leastminNonce. - If
minNonce==MaxUint64, requirenonce==MaxUint64andweight==0to prevent an unremovable validator. - A weight-zero removal cannot remove the final validator in the set.
State updates
- If
weight!=0is accepted: Update the validator's weight and advanceminNoncetononce+1. - If
weight==0is accepted: Delete the validation ID and minimum nonce from P-Chain state and refund the unused balance toRemainingBalanceOwnerin a single UTXO.
DisableL1ValidatorTx (temporary deactivation)
This transaction makes a validator inactive without permanently removing it from the validator set.
type DisableL1ValidatorTx struct {
BaseTx
ValidationID ids.ID
DisableAuth verify.Verifiable // Signed by DisableOwner
}The operation requires authorization from DisableOwner.
On success, the unused balance is refunded to RemainingBalanceOwner.
This only deactivates the validator. Permanent removal requires SetL1ValidatorWeightTx(weight=0).
That instruction must be authorized through the validator manager's Warp message.
The P-Chain does not enforce MinStakeDuration for L1 staking. An L1 requiring a lock-up period must define it in its own validator management logic.
A disabled validator can become active again when its balance is replenished through IncreaseL1ValidatorBalanceTx.
IncreaseL1ValidatorBalanceTx (adding balance)
Anyone may add $AVAX to the balance of the specified validation ID. Adding sufficient balance can reactivate an inactive validator.
type IncreaseL1ValidatorBalanceTx struct {
BaseTx
ValidationID ids.ID
Balance uint64 // <= sum(inputs) - sum(outputs) - TxFee
}Unused funds can be refunded to the designated remaining-balance owner by disabling the validator through DisableL1ValidatorTx with the required authorization.
Bootstrapping L1 nodes
Launching a new node or validator requires initial synchronization to reconstruct the network's current state locally. On the Primary Network, nodes connect to trusted bootstrappers to begin peer discovery. L1 validators need not validate the Primary Network, so relying only on Primary Network validator membership does not suffice to discover L1 peers. The network therefore tracks L1 validator IP addresses and propagates them through its peer discovery mechanism. This allows an L1 to discover peers efficiently without necessarily operating its own dedicated bootstrappers.
L1 sovereignty and the P-Chain boundary
Under ACP77, the P-Chain does not manage L1-specific staking assets; Primary Network staking remains denominated in $AVAX.
An L1's validator manager controls its staking assets, lock-ups, reward distribution, and any slashing.
The P-Chain requires continuous fees for maintaining active L1 validators.
An L1 may arrange to fund its validators' fee balances on their behalf.
Authority over the L1 validator set belongs to the L1's management mechanism rather than the P-Chain.
The L1 determines participation and staking requirements; L1 staking assets are not locked on the P-Chain. Removing a validator with SetL1ValidatorWeightTx(weight=0) does not itself release stake held elsewhere.
The P-Chain verifies and applies authenticated Warp messages and can act as a neutral record of validator-set updates.
For example, the L1 can authorize a weight reduction for a misbehaving validator using a BLS aggregate signature satisfying the applicable threshold, and the P-Chain executes the verified update.
Future extensions could allow each L1 to configure its own threshold, such as 51% instead of the specified 67%.
Continuous fee mechanism
Active L1 validators require ongoing maintenance of data such as BLS keys, weights, and nonces, as well as IP-address tracking.
These responsibilities impose ongoing resource costs on the P-Chain, motivating a time-based fee mechanism.
Each validator therefore has a Balance from which fees are deducted dynamically according to its active duration.
Balance is initialized by RegisterL1ValidatorTx and can be replenished through IncreaseL1ValidatorBalanceTx.
When a validator's balance can no longer cover the required fees, it becomes inactive, its active in-memory properties are removed, and its signature weight is no longer counted as active.
Replenishing sufficient balance allows the validator to become active again.
Inactive validators can be permanently removed through SetL1ValidatorWeightTx(weight=0).
Efficient fee accounting
An accumulator, acc, allows fees to be deducted efficiently.
acc represents the cumulative per-validator fee that would have accrued if a validator had been active since the accumulator's origin.
Comparing adjusted validator balances against the accumulator allows the system to identify the order in which balances become exhausted efficiently.
The following illustrates the mechanism in pseudocode.
class ValidatorQueue:
def __init__(self, fee_getter):
self.acc = 0
self.queue = PriorityQueue()
self.fee_getter = fee_getter
# Advance the accumulator with elapsed time and remove validators with insufficient balance
def time_elapse(self, t):
self.acc = self.acc + self.fee_getter(t)
while True:
vdr = self.queue.peek()
if vdr.balance < self.acc:
self.queue.pop()
continue
return
# Register a validator using an accumulator-adjusted balance
def validator_enter(self, vdr):
vdr.balance = vdr.balance + self.acc
self.queue.add(vdr)
# Settle the balance and issue a refund when removing a validator
def validator_remove(self, vdrNodeID):
vdr = find_and_remove(self.queue, vdrNodeID)
vdr.balance = vdr.balance - self.acc
vdr.refund() # Refund to RemainingBalanceOwner
self.queue.remove()
# Add balance and reactivate
def validator_increase(self, vdrNodeID, balance):
vdr = find_and_remove(self.queue, vdrNodeID)
vdr.balance = vdr.balance + balance
self.queue.add(vdr)Adjusting the fee rate
The fee rate adapts the dynamic base fee mechanism introduced in ACP103.
Let T denote the target number of active validators and V the actual active count. Their difference determines changes to the excess accumulator x, which influences the fee rate.
Initially, x=0. The following rules update the rate each second.
- Fee rate
(`M` is the minimum rate, and `K` controls the rate of change.)- Update rule
When the active validator count exceeds the target, `x` increases and the fee rate rises exponentially.
Each increase in `x` by `K` multiplies the rate by approximately e (about 2.7).Implementation example (approximation and duration calculation)
The exponential calculation uses an approximation, and the total cost over an interval of seconds can be expressed as follows.
# Approximate the exponential function
def fake_exponential(factor: int, numerator: int, denominator: int) -> int:
i = 1
output = 0
numerator_accum = factor * denominator
while numerator_accum > 0:
output += numerator_accum
numerator_accum = (numerator_accum * numerator) // (denominator * i)
i += 1
return output // denominator
# Calculate the total fee for Δt seconds
def cost_over_time(V:int, T:int, x:int, Δt:int) -> int:
cost = 0
for _ in range(Δt):
x = max(x + V - T, 0)
cost += fake_exponential(M, x, K)
return costCharging for active validator maintenance based on balances and elapsed time allows the P-Chain to regulate resource usage efficiently.
Block processing
When processing a block, first deactivate validators with insufficient balance, then apply the transactions in the block. After processing, validators unable to cover the next second's fee also become inactive.
Timestamp handling is strict. A block is invalid if advancing chain time as specified would cause a validator balance to become negative. Apply the following rules when constructing a block.
- Use the current wall-clock time if advancing to it does not cause any validator's balance to become insufficient.
- If advancing directly to that time would exhaust a validator's balance, use the exact time at which the first balance becomes exhausted.
This design ensures that changes to the active validator count are accounted for at the appropriate block boundaries.
Parameters (initial defaults)
| Parameter | Meaning | Value |
|---|---|---|
| T | Target active validator count | 10,000 |
| C | Capacity | 20,000 |
| M | Minimum fee rate per active validator per second | 512 nAVAX/s |
| K | Fee-rate adjustment constant | 1_246_488_515 |
M=512 nAVAX/scorresponds to approximately 1.33 AVAX per active validator per 30-day month at the minimum rate (when accumulated excess is zero).Kis selected so the fee doubling time is approximately 24 hours whenVremains close to capacityCunder the stated initial parameters.- At a slight excess of
V=T+1, doubling takes approximately 27 years. - Future ACPs may change T, M, and K.
Validator user experience
An active L1 validator's balance gradually decreases as continuous fees accrue.
Node clients are encouraged to provide an API for querying the remaining fee balance.
Operators can replenish balances through IncreaseL1ValidatorBalanceTx and recover unused funds through an authorized DisableL1ValidatorTx.
In practice, many operators use wallets or L1-as-a-Service providers rather than managing nodes directly. These services can monitor and replenish fee balances, potentially automating top-ups where authorized.
Reference diagrams
flowchart TB
subgraph Old[Legacy flow]
A["Primary Network\n(Full X/P/C sync and consensus participation)"] -->|Prerequisite| B["Subnet validator"]
A -->|Managed by P-Chain| C["Validator set"]
C -->|ANT lock &\nTransformSubnetTx| D["Rewards: distributed on P-Chain"]
B -->|Initial requirement| E["2000 AVAX stake"]
end
flowchart TB
subgraph New[Proposed flow]
F["Subnet/L1 validator"] -. Separate .-> G["Primary Network\nPartial sync (minimum required)"]
F -->|ERC-20 / ERC-721 / other assets| H["Staking & reward management\n(Implemented and operated by the L1)"]
G -->|Continuous fees| I["Payments to P-Chain\n(Continuous Fee)"]
end
Compatibility
ACP77 substantially revises the Subnet and L1 model. Its changes must be introduced on a going-forward basis to avoid disrupting existing Subnets. Existing Subnets and their validators should be able to continue operating without interruption as the new rules are activated.
Validators already operating legacy Subnets can continue validating both the Primary Network and their Subnets. Introducing the new model does not automatically change the operation of every existing Subnet.
However, because ACP77 introduces state execution changes, a mandatory network upgrade is required. The upgrade boundary requires the following considerations.
- Before activation, continue validating blocks under the legacy rules.
- At activation, begin applying the new rules.
- In particular, continue enforcing the legacy 2000 AVAX Primary Network staking prerequisite before the upgrade. The prerequisite is removed for the new L1 validator model after activation.
Disabled transaction types
Activation of ACP77 disables certain legacy P-Chain transaction types.
One example is TransformSubnetTx.
Elastic Subnets, introduced in Banff, supported proof of stake using Subnet-specific tokens and uptime-based reward distribution.
Under the new proposal, the Elastic Subnet mechanism is disabled and TransformSubnetTx is no longer accepted.
The original proposal notes that no Elastic Subnets existed on Mainnet at that time. It therefore anticipated no operational impact from disabling this transaction type.
Newly introduced transaction types
ACP77 introduces five P-Chain transaction types. They support validator management and fee accounting after conversion from a Subnet to an L1.
| Transaction | Purpose |
|---|---|
ConvertSubnetToL1Tx |
Converts an existing Subnet into an L1 and establishes its validator manager. |
RegisterL1ValidatorTx |
Registers a new L1 validator. |
SetL1ValidatorWeightTx |
Updates the weight of an existing validator or removes it. |
DisableL1ValidatorTx |
Deactivates a validator without permanently removing it from the set. |
IncreaseL1ValidatorBalanceTx |
Adds to an existing validator's fee balance and can enable reactivation. |
Reference implementation
In the proposal's pre-activation implementation notes, ACP77 was being implemented behind AvalancheGo's Etna upgrade flag.
The corresponding code and historical development progress could be tracked through GitHub issues labeled acp77.
Before Etna activation, AvalancheGo was intended to reject the new ACP77 transaction types. This describes the pre-upgrade implementation state, not current network availability. This prevented the new transaction types from affecting existing operations before activation.
Any revisions made through the ACP process also needed to be reflected in the implementation. The implementation was to be updated before Etna activation to match the final specification.
Security
ACP77 allows Avalanche L1s to launch with substantially lower upfront costs than legacy Subnets. This may increase the number of L1s and their validators. Each active validator imposes a certain RAM cost on the P-Chain; the continuous fee mechanism is designed to regulate this resource demand.
However, an L1 is sovereign with respect to its own staking assets, which are not locked on the P-Chain.
This introduces additional risks.
A malicious L1 may remove validators under its own management rules and, depending on its staking mechanism, could seize assets locked by its validators.
The P-Chain can provide a refund of the remaining AVAX fee balance to the designated owner through an authorized DisableL1ValidatorTx.
The L1 itself controls assets managed by its staking mechanism, so validators must assess the security of the L1 they join.
Warp messages for RegisterL1ValidatorTx have an expiry window of up to 24 hours.
Large volumes of registrations can impose additional memory requirements on the P-Chain for replay-protection records.
If this becomes a material problem, a future ACP could shorten the permitted expiry window.
Another consideration is that a node ID may be added to an L1 validator set without its operator's intention. The proposal explains that this does not itself put the operator's stake or rewards at risk. Node IDs can be generated without staking, so an affected operator can rotate its node ID using new keys if necessary. This trade-off permits unsolicited node-ID registration in exchange for simpler onboarding. It follows a similar design principle to protecting Primary Network validators' existing stakes and rewards from unauthorized participation elsewhere.
Finally, continuous fees apply only to active validators. Inactive validators are no longer retained in the active in-memory set, but their records remain on disk. If inactive validators accumulate indefinitely, P-Chain state may continue to grow. Future ACPs may introduce limits on state growth or state expiration mechanisms.
Conclusion
This article covered ACP77, which extends Avalanche's Subnet architecture to support sovereign L1 networks without requiring their validators to validate the Primary Network. I hope it helped clarify the design.
If you have questions, feel free to reach out through Twitter DM.
I also publish articles on the following platforms.


