Getting signature validation error when minting NFTs with Hedera Token Service

I’m trying to mint a new NFT using Hedera Token Service but keep running into signature validation issues. Every time I attempt to create the token, the transaction fails with an invalid signature error. I’m following the official documentation but something seems wrong with how I’m generating or signing the transaction. Has anyone encountered this problem before? I’m using the standard HTS workflow for NFT creation but the signature keeps getting rejected. Any help would be appreciated.

const tokenClient = new TokenCreateTransaction()
  .setTokenName("MyNFTCollection")
  .setTokenSymbol("MNFT")
  .setTokenType(TokenType.NonFungibleUnique)
  .setSupplyType(TokenSupplyType.Finite)
  .setMaxSupply(1000)
  .setTreasuryAccountId(treasuryId)
  .setSupplyKey(supplyKey.publicKey)
  .freezeWith(client);

const signedTx = await tokenClient.sign(privateKey);
const response = await signedTx.execute(client);

What could be causing the signature validation to fail?

double-check ur key sequence. I had the same prob - I was missing the admin key sig. If ur treasury acc is dif from the operator, it needs to sign too. Add .setAdminKey(adminKey.publicKey) and sign with both keys (treasury + admin). also verify ur client matches ur acc setup (testnet vs mainnet).

Had the same problem when minting NFTs with Hedera Token Service. Make sure your operator account is set up right first. Run Client.setOperator(operatorId, operatorKey) before the transaction to get your client configured with the right keys. Double-check that your private key matches the operator account you’ve set. Also check if your treasury account has enough HBAR for fees - low balance can throw signature errors that don’t make sense.