NFT Plugin

The @solana-agent-kit/plugin-nft plugin provides a set of tools and actions to interact with NFTs on the Solana blockchain.

Installation

Install the plugin alongside the core Solana Agent Kit:

npm install solana-agent-kit @solana-agent-kit/plugin-nft

Integration

Add the NFT plugin to your agent:

import { SolanaAgentKit } from "solana-agent-kit";
import NFTPlugin from "@solana-agent-kit/plugin-nft";

const agent = new SolanaAgentKit(
  wallet,
  "YOUR_RPC_URL",
  {
    OPENAI_API_KEY: "YOUR_OPENAI_API_KEY",
  }
).use(NFTPlugin);

Available Tools

Metaplex

Tool NameDescription
deployCollectionDeploy a new NFT collection
deployTokenDeploy a new NFT token
getAssetRetrieve asset details
getAssetsByAuthorityGet assets by authority
getAssetsByCreatorGet assets by creator
mintCollectionNFTMint an NFT in a collection
searchAssetsSearch for assets

Tensor

Tool NameDescription
listNFTForSaleList an NFT for sale
cancelListingCancel an NFT listing

3Land

Tool NameDescription
create3LandCollectionCreate a collection on 3Land
create3LandSingleCreate a single NFT on 3Land