I am new to solana development working through the playground hello world tutorial.
What is the right hash needed for "solana confirm -v <Transaction_hash>"?
I have built and deployed the hello world program in the browser playground and am trying to confirm the transactions. I have tried using hash from txhash below and the latest block hash (blockhashinfo) but both return a "Parse error: Bad parameter: Invalid signature". Would love some guidance on what I should be entering.
Thanks for the help on a neub question!
Program here:
// Client code... console.log("programID: ", pg.PROGRAM_ID.toString()); //Get the latest blockhash info const blockhashInfo = await pg.connection.getLatestBlockhash(); //create transaction const tx = new web3.Transaction({ ...blockhashInfo, }); //Add hello world program tx.add( new web3.TransactionInstruction({ programId: pg.PROGRAM_ID, keys: [], data: Buffer.from([]), }) ); // sign transaction tx.sign(pg.wallet.keypair); //send the transaction to solana network const txHash = await pg.connection.sendRawTransaction(tx.serialize()); console.log("transaction sent with hash:", txHash);