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"
}