mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-05-16 15:10:26 +00:00
Merge branch 'main' into quangkeu95/main
This commit is contained in:
@@ -13,10 +13,7 @@ const agent = new SolanaAgentKit(
|
||||
{ OPENAI_API_KEY: process.env.OPENAI_API_KEY! },
|
||||
);
|
||||
|
||||
const optionsWithBase58: StoreInitOptions = {
|
||||
privateKey: process.env.SOLANA_PRIVATE_KEY!,
|
||||
isMainnet: false,
|
||||
};
|
||||
const isDevnet = true;
|
||||
|
||||
/****************************** CREATING COLLECTION ******************************** */
|
||||
|
||||
@@ -29,8 +26,8 @@ const collectionOpts: CreateCollectionOptions = {
|
||||
|
||||
(async () => {
|
||||
const collection = await agent.create3LandCollection(
|
||||
optionsWithBase58,
|
||||
collectionOpts,
|
||||
isDevnet,
|
||||
);
|
||||
|
||||
console.log("collection: ", collection);
|
||||
@@ -41,21 +38,24 @@ const collectionAccount = "";
|
||||
const createItemOptions: CreateSingleOptions = {
|
||||
itemName: "",
|
||||
sellerFee: 500, //5%
|
||||
itemAmount: 100,
|
||||
itemAmount: 333,
|
||||
itemSymbol: "",
|
||||
itemDescription: "",
|
||||
traits: [{ trait_type: "", value: "" }],
|
||||
price: 0, //100000000 == 0.1 sol
|
||||
price: 100000000, //100000000 == 0.1 sol,
|
||||
splHash: "",
|
||||
poolName: "",
|
||||
mainImageUrl: "",
|
||||
};
|
||||
|
||||
const isMainnet = false;
|
||||
const withPool = true;
|
||||
|
||||
(async () => {
|
||||
const result = agent.create3LandNft(
|
||||
optionsWithBase58,
|
||||
collectionAccount,
|
||||
createItemOptions,
|
||||
isMainnet,
|
||||
isDevnet,
|
||||
withPool,
|
||||
);
|
||||
console.log("result: ", result);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user