Untitled
unknown
plain_text
3 years ago
991 B
6
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Xenturion</title>
<script src="https://cdn.jsdelivr.net/npm/web3@1.3.6/dist/web3.min.js"></script>
</head>
<body>
<h1>Xenturion NFTs</h1>
<button id="mintButton">Batch Mint 128 Xenturions</button>
<script>
// Replace with your contract ABI and address
const contractABI = [];
const contractAddress = "0x...";
const web3 = new Web3(window.ethereum);
const contract = new web3.eth.Contract(contractABI, contractAddress);
async function batchMint() {
const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' });
const from = accounts[0];
await contract.methods.batchMint(128).send({ from });
}
document.getElementById("mintButton").addEventListener("click", batchMint);
</script>
</body>
</html>
Editor is loading...