You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Metaplex Candy Machine提现超时无法提取SOL问题咨询

Candy Machine v2 提现超时故障排查修复

故障表现

  • 名下所有Candy Machine(CM)提现操作均触发超时错误,连续多日多次重试结果一致
  • 执行withdraw_all批量提现、withdraw单账户提现命令报错完全相同
  • 共识别到2个待回收配置账户,合计锁仓1.98635488 SOL,无账户提现成功
    注:返回结果中的stream/web、buffer.Blob实验特性警告为Node.js版本兼容提示,不影响命令实际执行逻辑,和本次超时故障无关。

复现命令

ts-node C:/Users/admin/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts withdraw_all -e mainnet-beta -k Se4Gf2GsjgzZZyUfnhFVzVLcijsCXx5a9Erhsp5uoUF.json

故障返回日志

wallet public key: Se4Gf2GsjgzZZyUfnhFVzVLcijsCXx5a9Erhsp5uoUF
(node:15300) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15300) ExperimentalWarning: buffer.Blob is an experimental feature. This feature could change at any time
Total Number of Candy Machine Config Accounts to drain 2
1.98635488 SOL locked up in configs
WARNING: This command will drain ALL of the Candy Machine config accounts that are owned by your current KeyPair, this will break your Candy Machine if its still in use
Rejecting for timeout...
Timeout Error caught { timeout: true }
Withdraw has failed for config account FJXUQQ1LJjSgVN2ChC79kN1gN9e3BKbNpCkTVMTHR2CN Error: Timed out awaiting confirmation on transaction
Rejecting for timeout...
Timeout Error caught { timeout: true }
Withdraw has failed for config account HqxznK2VtoAMnaakA7YCr7Vok4Y6YnpmvNFVtQe9iwrK Error: Timed out awaiting confirmation on transaction
Congratulations, 0 config accounts have been successfully drained.
Now you kinda rich, please consider supporting Open Source developers.

根因说明

该报错由两类原因共同触发:

  • CLI默认使用Solana官方公共RPC节点,主网拥堵时公共节点限流严重,交易广播后无法及时返回链上确认结果
  • 旧版本Candy Machine v2 CLI默认交易确认等待阈值仅30秒,且批量提现时单交易体积过大,很容易触发超时判定

修复步骤

按以下顺序操作即可解决问题:

  • 替换默认公共RPC
    执行命令时追加--rpc-url参数,指定稳定的主网RPC节点,不要使用公开免费的限流RPC,优先选择自有节点或付费RPC服务。
  • 单账户拆分提现
    不要直接用withdraw_all批量处理,对两个报错的配置账户分别执行单账户提现命令,降低单交易的计算单元消耗,命令参考如下:
    # 提现第一个配置账户
    ts-node C:/Users/admin/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts withdraw -e mainnet-beta -k Se4Gf2GsjgzZZyUfnhFVzVLcijsCXx5a9Erhsp5uoUF.json --candy-machine-address FJXUQQ1LJjSgVN2ChC79kN1gN9e3BKbNpCkTVMTHR2CN --rpc-url 替换为你的主网RPC地址
    # 提现第二个配置账户
    ts-node C:/Users/admin/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts withdraw -e mainnet-beta -k Se4Gf2GsjgzZZyUfnhFVzVLcijsCXx5a9Erhsp5uoUF.json --candy-machine-address HqxznK2VtoAMnaakA7YCr7Vok4Y6YnpmvNFVtQe9iwrK --rpc-url 替换为你的主网RPC地址
    
  • 调整超时配置(可选,替换RPC后仍报错时操作)
    打开本地candy-machine-v2-cli.ts源码,找到交易确认逻辑部分,将confirmTransaction的超时参数从默认30000毫秒修改为120000毫秒,同时将交易预检查的承诺等级从processed调整为confirmed,减少节点临时分叉导致的确认失败。
  • 追加优先费(可选,主网极端拥堵时操作)
    执行提现命令时追加--priority-fee 100000参数,支付约0.0001 SOL的优先费,提高交易在链上的打包优先级,避免交易长时间滞留内存池。

注意:提现操作会永久回收Candy Machine配置账户,执行前确认对应CM已经完全停止使用,后续不再需要mint功能。

内容的提问来源于stack exchange,提问作者0xCrusader

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.28 05:48:42