简体   繁体   English

Solana 代币创建

[英]Solana Token Creation

I am trying to create a token in Solana using the command:我正在尝试使用以下命令在 Solana 中创建令牌:

 spl-token create-token --url devnet

But all I am getting is the following error.但我得到的只是以下错误。

error: unrecognized signer source错误:无法识别的签名者来源

I am also using a Windows 10 Professional instead of MacBook.我还使用 Windows 10 Professional 而不是 MacBook。

You can't use Solana CLI on Windows. I recommend using WSL if you're on Windows. You can refer to this doc - https://learn.microsoft.com/en-us/windows/wsl/install-win10你不能在 Windows 上使用 Solana CLI。如果你在 Windows 上,我建议使用 WSL。你可以参考这个文档 - https://learn.microsoft.com/en-us/windows/wsl/install-win10

And inside WSL, run the following commands one by one.在 WSL 中,一条一条地运行以下命令。

apt upgrade
apt update
apt install nodejs
apt install npm
apt install python3-pip
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sh -c "$(curl -sSfL https://release.solana.com/v1.5.7/install)"
source $HOME/.cargo/env
export PATH="/root/.local/share/solana/install/active_release/bin:$PATH"
export RUST_LOG=solana_runtime::system_instruction_processor=trace,solana_runtime::message_processor=debug,solana_bpf_loader=debug,solana_rbpf=debug
solana-test-validator --log

Now you should be able to create a token on your loca.net.现在您应该能够在您的 loca.net 上创建一个令牌。

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

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