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 examines ACP23, which proposes a transaction for transferring assets directly between users on Avalanche’s P-Chain.
This article translates, summarizes, and supplements the material linked below.
I have also covered various EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ACP23 proposes adding native transfer functionality to Avalanche’s P-Chain. At the time of the proposal, the P-Chain had no simple transaction type for users to send assets directly. Users therefore had to repurpose transaction types that were not designed for transfers. ACP23 aims to support a native asset transfer transaction on the P-Chain so users can exchange assets safely and simply within that chain.
Motivation
On the X-Chain, users can perform simple asset transfers using a basic transaction type called BaseTx.
Although the P-Chain has transaction types that extend BaseTx, it does not accept BaseTx itself as a valid transaction.
This forces users to resort to awkward workarounds for P-Chain transfers.
For example, the AvalancheGo wallet repurposes CreateSubnetTx to reproduce the functionality of BaseTx.
Although technically possible, such workarounds depart from the original design and increase complexity and cost. In particular, demand for asset transfers on the P-Chain is expected to grow as more L1s launch on Avalanche. Native transfers would offer validators and end users a cheaper, simpler way to use the network, improving usability and efficiency.
Specification
ACP23 defines how to make BaseTx a valid transaction on the P-Chain.
Specifically, Avalanche client software such as AvalancheGo must recognize BaseTx as an official transaction type.
Registering BaseTx
Avalanche network clients must first register BaseTx using the following information.
| Field | Value |
|---|---|
| Type ID | 0x22 |
| Codec Version | 0x00 |
This allows clients to identify an incoming P-Chain transaction as BaseTx.
Previously, because BaseTx itself was not accepted as a valid transaction, there was no dedicated transfer transaction type. This change makes such transactions possible.
BaseTx specification
BaseTx is the foundational transaction structure on Avalanche’s P-Chain, and many other P-Chain transaction types extend it.
For example, CreateSubnetTx and AddValidatorTx internally inherit from BaseTx and implement additional functionality.
The key point of ACP23 is that it does not define a new transaction format.
It simply registers the existing BaseTx as a valid transaction, without changing its contents.
In other words, the existing structure becomes directly usable.
The details are documented in base_tx.go in the AvalancheGo repository.
The code defines basic fields such as inputs, outputs, the network ID, and the blockchain ID.
// BaseTx is the basis of all transactions
type BaseTx struct {
// Metadata, inputs, and outputs
UnsignedTx `serialize:"true" json:"unsignedTx"`
}Compatibility
ACP23 formally adds BaseTx as a transaction type.
Adding a transaction type is an execution change and requires a network upgrade.
This allows existing nodes to recognize the new transaction.
Implementations must therefore reject this transaction before the upgrade takes effect. Accepting the new format prematurely could compromise network consistency.
ACP23 is limited to specifying the newly enabled BaseTx transaction type and does not affect other features.
Reference implementation
An implementation adding BaseTx support was already created in this pull request and merged into AvalancheGo.
The code is therefore already integrated.
However, the D upgrade must be activated before the transaction can actually be used.
At the time described in the proposal, the upgrade had not yet been activated, so AvalancheGo rejected submitted BaseTx transactions.
If the transaction specification changes during discussion or development of ACP23, the code must be updated accordingly. The specification and implementation must fully agree before the upgrade takes effect.
Security
At the time of the proposal, the P-Chain only had a fixed fee mechanism, with no mechanism for controlling demand during periods of high network usage. If many users submit transactions while fees remain low, processing demand can surge and affect overall chain throughput.
The BaseTx added by ACP23 is likely to see substantial use because simple transfers are in high demand.
Heavy use could temporarily put the P-Chain under load.
To account for this, the AvalancheGo reference implementation sets the transaction fee for BaseTx to 0.001 AVAX.
This is the same level as the existing ImportTx and ExportTx fees and serves as a deterrent against spam.
The proposal considers this sufficient for the time being.
In the longer term, however, the P-Chain is expected to need a dynamic fee mechanism. Dynamic fees vary with network congestion and can mitigate the risks of concentrated demand. Because this would affect the P-Chain’s overall fee design, it is outside the scope of ACP23.
Conclusion
This article has covered ACP23, which proposes a transaction for transferring assets directly between users on Avalanche’s P-Chain.
What did you think?
If you have any questions, feel free to send me a direct message on Twitter.
I also publish on other platforms. Feel free to explore them.


