package com.platform2easy.genesis.blockchain.service;

import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.http.HttpService;
import org.web3j.tx.gas.DefaultGasProvider;

public class DeployNFT {

    public static void main(String[] args) throws Exception {
        Web3j web3j = Web3j.build(new HttpService("https://sepolia.infura.io/v3/SUA_API_KEY"));
        Credentials credentials = Credentials.create("SUA_PRIVATE_KEY");

        // Deploy do contrato
        /*MeuNFT contrato = MeuNFT.deploy(
                web3j,
                credentials,
                new DefaultGasProvider()
        ).send();

        System.out.println("Contrato implantado em: " + contrato.getContractAddress());

        // Mint de um NFT
        contrato.mintNFT(
                credentials.getAddress(),
                "https://meusite.com/nft/1.json"
        ).send();

        System.out.println("NFT mintado!");*/
    }
}
