am not able to get the transaction record of the transaction my code is below kindly help me
here is the script tag I used
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" crossorigin="anonymous></script>
<script>
$(document).ready(function(){
if(window.ethereum) {
ethereum.request({ method: "eth_requestAccounts" });
} else {
console.error("Install Wallet");
}
});
$('#deposit').click(function(){
var amt = 0;
amt = parseInt($('#deposit').val()*1000000000000000000);
const web3 = new Web3(window.ethereum);
web3.eth.sendTransaction({
from: "0x0f63128d7274B30C8e30f884DA6469FF3dF2f8d9",
to: "0x14DC4828b521cF4692Df0CBd4397857Fa267a2B0",
value: amt
}).then(function(err, tx) {
if (err) {
console.log(err);
} else {
console.log(tx);
document.getElementById("txnStt").innerHTML = tx.status;
}
});
});
</script>