避免销毁
预防所有销毁形态的实用步骤,并附上展示每种形态的已执行用例。
Protocol behavior Verified 2026-08-31
Describes the Atomicals protocol itself at the pinned reference revision. It does not promise that any product exposes it.
- Page ID
-
guides/avoid-burns - Normative authority
- Executed source code at a pinned revision
- Networks
- mainnet
- Documentation version
- 2026.08
- Audience
- everyone, holder, developer
- Owner
- bitcoin-universe-docs
- Sources
-
- Atomicals ElectrumX
at
v1.5.2.0
- Atomicals ElectrumX
at
- Known limitations
-
- 已确认的销毁是永久性的。本步骤用于预防销毁,没有任何方式能撤销它。
- 支持的网络:mainnet。
- 状态:协议行为。
- 预防是唯一的手段,没有恢复途径。
- 以 outpoint 和聪为单位工作,绝不要使用代币金额输入框。
- 除非已为多代币情形建模,否则每笔交易只移动一个代币。
- 当批次超过要发送的数量时,务必包含一个着色找零输出。
- 把找零输出的大小设为余额的精确值。
- 在构建之前,按顺序建模确切的输入与输出集合。
- 确认计算出的销毁数量为零。
- 加入手续费输入与基数找零,然后重新建模。
- 确认销毁数量仍为零。
- 签署之前,把钱包提示与你的模型逐行比对。
第七步和第八步最容易被跳过,而钱包添加的找零正是在这里悄悄改变结果。
四种形态,已执行
Section titled “四种形态,已执行”| Case | Coloured inputs | Result per output | Burned | Clean |
|---|---|---|---|---|
Oversized next output burns the remainder oversized-next-output | 1200 units at input 0 | out 0: 700 sats to 700 units; out 1: 546 sats to 0 units | 500 units of TOKENA | no |
Outputs run out before the value does too-few-outputs | 1200 units at input 0 | out 0: 700 sats to 700 units | 500 units of TOKENA | no |
First output larger than the whole lot first-output-too-large | 500 units at input 0 | out 0: 20000 sats to 0 units | 500 units of TOKENA | no |
A non-clean slot triggers the output zero fallback two-tokens-non-clean-fallback | 700 units at input 0, 400 units at input 1 | out 0: 700 sats to 700 units; out 1: 546 sats to 0 units | 400 units of TOKENB | no |
| 形态 | 预防方式 |
|---|---|
| 下一个输出太大 | 把找零设为余额的精确值 |
| 输出不足 | 务必包含着色找零 |
| 第一个输出大于整批 | 绝不要把小批次送入大额首笔支付 |
| 多代币回退 | 每笔交易只移动一个代币 |
唯一一种有意销毁的情形
Section titled “唯一一种有意销毁的情形”有意销毁单位是一种合法操作。请明确地进行:构建一笔恰好销毁你所要销毁数量的交易,确认数字并记录 原因。绝不要依赖意外销毁。
通过会报告销毁的数据源读取该交易,确认数字与预期一致。比较着色输入总额与着色输出总额之和。