Discover updates to Hiro tools related to the Nakamoto upgrade.
Nakamoto is an upcoming upgrade to the Stacks network. Start here for an overview of how Nakamoto impacts the network, and below you will find how Hiro tools have been updated to support the Nakamoto upgrade.
The Stacks Explorer now features a new way to display blocks, aligning with the Nakamoto upgrade's approach of multiple STX blocks settling into one BTC block.
Install the latest nakamoto version with npm install @stacks/stacking@6.13.0.
The StackingClient in @stacks/stacking was updated to match the latest pox-4 contract.
Added StackingClient.signPoxSignature()
Added Pox4SignatureTopic enum
New stacking arguments for StackingClient.stack, StackingClient.stackExtend, StackingClient.stackIncrease, StackingClient.stackAggregationCommit, and StackingClient.stackAggregationCommitIndexed
Clarinet's devnet can now be used to test Nakamoto functionality.
The devnet now starts 2 signer nodes in Nakamoto mode.
Running clarinet check --enable-clarity-wasm now runs the current interpreter and clarity wasm side-by-side to allow comparing outputs.
clarinet console --enable-clarity-wasm now automatically runs the current interpreter and clarity wasm side-by-side and logs any difference in outputs.
By default, the Devnet won't start in epoch 3.0, see this guide to configure it.
The /extended/v2/* endpoints represent the modern API that is being continually expanded to support the Nakamoto upgrade. We encourage developers to use v2 endpoints for new developments. Be aware that /extended/v1/* are the older set of endpoints. Though they continue to function alongside v2, they will be deprecated in the coming months.
The Stacks Blockchain API has a series of new endpoints to support the upcoming Nakamoto upgrade:
Get Proof-of-Transfer details per Cycle, including Signers and Stackers, with information about stacked STX amounts, payout addresses and signer weights
Get a list of Stacks blocks per Bitcoin block to support the new Nakamoto mining mechanism
Get all transactions relevant to a STX address or contract ID, including filters for FT and NFT transfers
Support for the new Nakamoto tenure_change transaction type across all our transaction endpoints
Get a summary of current network mempool transaction fees, including statistics for expected confirmation priorities
Get the deployment status of multiple smart contracts in one call
All of these endpoints are backwards compatible with Stacks nodes running version 2.4 or earlier