Search code examples
onflow-cadence

Cannot send transactions to Flow emulator


I am trying to get the test code of the pinata-party working (https://medium.com/pinata/how-to-create-nfts-like-nba-top-shot-with-flow-and-ipfs-701296944bf).

It works fine to the point that I try and send a transaction:

flow transactions send --code "./transactions/MintPinataParty.cdc" --signer emulator-account

When I send that I get the error:

❌ Transaction Error execution error code 1006: [Error Code: 1006] invalid proposal key: public key 0 on account f8d6e0586b0a20c7 does not have a valid signature: [Error Code: 1009] invalid envelope key: public key 0 on account f8d6e0586b0a20c7 does not have a valid signature: signature is not valid

Anyone have any idea where this is coming from?

Thanks.


Solution

  • For me, the issue was that the private key in my flow.json file did not match the private key being used when starting the emulator. I was running the emulator via the Run Emulator command in VS Code. The private key being used for the emulator was in the command output.