简体   繁体   English

什么是 Solana spl-token Aux 账户

[英]What is Solana spl-token Aux account

What is Aux account?什么是辅助帐户?

I've created my own spl-token.我创建了自己的 spl 令牌。 I can mint the initial supply for my own account with my main address.我可以用我的主要地址为我自己的帐户铸造初始供应。 I created another address and create the token account for it:我创建了另一个地址并为其创建了令牌帐户:

spl-token create-account thisismytokenid solana-wallets/new.json

And then I minted my spl-token to the new address like so:然后我将我的 spl-token 铸造到新地址,如下所示:

spl-token mint thisismytokenid 1000 solana-wallets/new.json

The token ended up in my main account.令牌最终进入了我的主帐户。 When I run the spl-token accounts command, it lists two different accounts, with the latest being an Aux account.当我运行spl-token accounts命令时,它列出了两个不同的帐户,最新的是一个 Aux 帐户。 What is that?那是什么? So I can't create a token account nor mint token for another address?所以我不能为另一个地址创建令牌帐户或铸造令牌?

Aux accounts are non-associated token accounts, or non-canonical.辅助帐户是非关联令牌帐户或非规范帐户。

You can use multiple accounts, but there is only one associated token account per mint.您可以使用多个帐户,但每个铸币厂只有一个关联的令牌帐户。 It is recommended to only use the associated token account.建议仅使用关联的令牌帐户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM