Genrate and Mint NFT

Hello guys,

I am following a moralis tutorial to generate and mint nft, and they have this minting function, but its not moralis call, is there alternative function for this function in moralis.

async function mintToken(_uri){
const encodedFunction = web3.eth.abi.encodeFunctionCall({
name: “mintToken”,
type: “function”,
inputs: [{
type: ‘string’,
name: ‘tokenURI’
}, [_uri]);

const transactionParameters = {
to: nft_contract_address,
from: ethereum.selectedAddress,
data: encodedFunction
const txt = await ethereum.request({
method: ‘eth_sendTransaction’,
params: [transactionParameters]
return txt

Thanks in Advance.

you can try to use Moralis.executeFunction: