Sologenic Minter
This library was created to automate up to an extent the minting of NFTs.
DUE TO THE REQUIREMENTS OF USING THE WALLET SECRET, IT IS NOT RECOMMENDED TO USE THIS LIBRARY CLIENT SIDE.
Requirements
Collection Address - You can get this after creating a collection on the Sologenic UI Platform and retrieving the address.
npm i sologenic-minter
Usage
import SologenicMinter from "sologenic-minter";
const minter = new SologenicMinter({
apiUrl: SOLOGENIC_API_URL,
xrpl_node: XRPL_NODE,
wallet: {
address: YOUR_WALLET_ADDRESS,
seed: YOUR_WALLET_SECRET,
},
});
minter.setCollectionAddress(YOUR_DESIRED_COLLECTION);
const { mint_tx_hash, NFTokenID } = await minter.mint({
file: file,
thumbnail: file,
name: "Testing NFT 3",
category: "arts",
only_xrp: false,
is_explicit: false,
transfer_fee: 10000,
description: "Testing NFT description",
external_url: "https://sologenic.org",
attributes: [
{
trait_type: "attribute",
value: "attr",
},
{
trait_type: "attribute 2",
value: 1,
max_value: 2,
},
],
});