0

hey i made a custom keypair and want to make a custom contact address like my keypair. then I spl-token create-token and entered my keypair json and I got this "Error: "default signer is required, please specify a valid default signer by identifying a valid configuration file using the --config argument, or by creating a valid config at the default location of ~/.config/solana/cli/config.yml using the solana config command"" any idea how to fix

2 Answers 2

1

This is a common error that you'll see across Solana and SPL tools unfortunately. If you don't have a default keypair configured, the commands will abort.

In your case, you need to specify some keypair to pay for the transaction to create the token. You can do this with:

solana-keygen new

And then funding your new keypair with an solana airdrop or by transferring SOL to it.

More information at https://docs.solanalabs.com/cli/wallets/paper#creating-a-paper-wallet

0

Try this:

Step 1:

solana config set -k <path/to/your/mint/authority/keypair>.json

Step 2:

solana airdrop 1

Step 3:

spl-token create-token <path/to/your/desired/mint/keypair>.json

The mint address should now be whatever the pubkey of your desired/mint/keypair is.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.