I am trying to create a token after setting my wallet using the following command.
solana-keygen grind --starts-with ott:1
The wallet creation is successful. I have also configured the connection to the devnet.
solana config set --url https://api.devnet.solana.com --keypair my-keypair.json
I have also added sufficient SOL to the wallet. Now I am trying to create a token and add it to this wallet using the following command.
spl-token create-token --decimals 18 my-keypair.json
It is displaying the following error.
Creating token ottKBxXuJjtQoLXD21AM5aVFTAHJvZMuZfuUyEdL37J under program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA Error: Client(Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { code: -32002, message: "Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0", data: SendTransactionPreflightFailure(RpcSimulateTransactionResult { err: Some(InstructionError(0, Custom(0))), logs: Some(["Program 11111111111111111111111111111111 invoke [1]", "Create Account: account Address { address: ottKBxXuJjtQoLXD21AM5aVFTAHJvZMuZfuUyEdL37J, base: None } already in use", "Program 11111111111111111111111111111111 failed: custom program error: 0x0"]), accounts: None, units_consumed: Some(150), return_data: None }) }) })
Request your help to resolve this error.