我尝试部署 Solana 程序,但失败了,并且我丢失了用于出租的 SOL。有什么办法可以拿回来吗?
Error: Deploying program failed: Error processing Instruction 1: custom program error: 0x1
Run Code Online (Sandbox Code Playgroud)
Eva*_*rad 12
是的!即使部署失败,您用于租用的 SOL 仍存储在帐户中。
部署失败后,您将收到如下错误:
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` and the following 12-word seed phrase:
=================================================================================
this is a fake seed phrase really argle bargle boopity doop face
=================================================================================
To resume a deploy, pass the recovered keypair as the
[BUFFER_SIGNER] to `solana program deploy` or `solana write-buffer'.
Or to recover the account's lamports, pass it as the
[BUFFER_ACCOUNT_ADDRESS] argument to `solana program close`.
=================================================================================
Run Code Online (Sandbox Code Playgroud)
首先从它给你的种子短语中恢复密钥对:
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` and the following 12-word seed phrase:
=================================================================================
this is a fake seed phrase really argle bargle boopity doop face
=================================================================================
To resume a deploy, pass the recovered keypair as the
[BUFFER_SIGNER] to `solana program deploy` or `solana write-buffer'.
Or to recover the account's lamports, pass it as the
[BUFFER_ACCOUNT_ADDRESS] argument to `solana program close`.
=================================================================================
Run Code Online (Sandbox Code Playgroud)
然后您可以关闭帐户以恢复您的 SOL。
# After running this, paste in the seed phrase above
solana-keygen recover -o recover.json
Run Code Online (Sandbox Code Playgroud)
或者,您可以通过运行以下命令从所有正在进行的部署中恢复 SOL:
solana program close --buffers
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2780 次 |
| 最近记录: |