Algorand v2 testnet help

  const send=()=>{
  const passphrase = "tomato riot sting festival atom hire outer census 
                  siege clog excuse bag electric wasp taxi wealth key pave 
                  party child craft damage group absent diamond";

  let myAccount = algosdk.mnemonicToSecretKey(passphrase);
    
 
  axios.get("https://api.testnet.algoexplorer.io/v2/transactions/params").then
(async (res)=>{
      let endRound = res.data["last-round"] + parseInt(1000);
      let txn = {
       "from":'NZID4OI6KOQX2PZ3CFFEK4VA4JFHJ5EMHJGM6UZZZCVRSLGL5Q5HEZXPJI',
        "to": 'VRFUDDGJB2HBRTTMEONZHUH3RBZTBWG44Q3ZMQBA6BVZ3RRXRHCG3CZXZY',
        "fee": res.data["min-fee"],
        "amount": Number.parseInt(1000000),
        "firstRound":res.data["last-round"],
        "lastRound": endRound,
        "genesisID": res.data.["genesis-id"],
        "genesisHash": res.data.["genesis-hash"],
        "note": algosdk.encodeObj(`Transaction sent by `),
    };
    let signedTxn = algosdk.signTransaction(txn, myAccount.sk );
    let blob = signedTxn.blob;
    let rawTxn = await 
                 algodClient.sendRawTransaction(signedTxn,postHeader);
    let pendingTxn = await 
                 algodClient.pendingTransactionInformation(signedTxn.txID);
    console.log(pendingTxn);
    }).catch((e)=>{
      console.log(e);
    })
     
  }
send()

This code is working .
I am trying send some amount to another address on algorand testnet v2.
transaction id is getting logged on the console.but when i copy and paste the txn id into the algo explorer testnet . i get this respose

{
  "message": "could not find the transaction in the transaction pool or in the last 1000 confirmed rounds"
}

Welcome @arkhaminferno to the Algorand Forum. I checked the explorer and found a few recent transactions from/to the accounts above on TestNet:

Have you got it sorted, so is something still amiss?

Glad to have you here building!

Welcome @arkhaminferno! Just two quick remarks.

First, you can use triple backquotes ``` around your code so that it looks nicer in the post. I’ve edited your post.

Second, you san use async for the whole code which avoids the need for the .then.
Example:

(async () => {
  ...
  let res = await axios.get("https://api.testnet.algoexplorer.io/v2/transactions/params");
  let endRound = res.data["last-round"] + parseInt(1000);
  ...
})().catch(e => {
    console.log(e);
});