首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >程序期望这个帐户已经初始化。

程序期望这个帐户已经初始化。
EN

Stack Overflow用户
提问于 2022-09-28 13:02:39
回答 1查看 150关注 0票数 0

我正在使用木星交换令牌的索拉纳包。在得到交换结果之后。我当时正在与Solana包sendTransaction方法同步执行一个事务。我得到了下面的错误代码。

木星昂首阔步收藏。

{accounts: null, err: {InstructionError: [0, {Custom: 3012}]}, logs: [Program JUP3c2Uh3WA4Ng34tw6kPd2G4C5BB21Xo36Je1s32Ph invoke [1], Program log: Instruction: SetTokenLedger, Program log: AnchorError caused by account: token_account. Error Code: AccountNotInitialized. Error Number: 3012. Error Message: The program expected this account to be already initialized., Program JUP3c2Uh3WA4Ng34tw6kPd2G4C5BB21Xo36Je1s32Ph consumed 5139 of 600000 compute units, Program JUP3c2Uh3WA4Ng34tw6kPd2G4C5BB21Xo36Je1s32Ph failed: custom program error: 0xbc4], unitsConsumed: 0}

EN

回答 1

Stack Overflow用户

发布于 2022-11-17 12:09:14

木星最多可以创建3个交易(setupTransaction、swapTransaction、cleanupTransaction)。确保按照这个顺序执行所有这些(如果它们不是null)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73881920

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档