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?