NFT Plugin
Interact with NFTs on the Solana blockchain
NFT Plugin
The @ping-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 Ping Agent Kit:
Copy
npm install ping-agent-kit @ping-agent-kit/plugin-nft
Integration
Add the NFT plugin to your agent:
Copy
import { PingAgentKit } from "ping-agent-kit";
import NFTPlugin from "@ping-agent-kit/plugin-nft";
const agent = new PingAgentKit(
wallet,
"YOUR_RPC_URL",
{
OPENAI_API_KEY: "YOUR_OPENAI_API_KEY",
}
).use(NFTPlugin);
Available Tools
Metaplex
Tool Name
Description
deployCollection
Deploy a new NFT collection
deployToken
Deploy a new NFT token
getAsset
Retrieve asset details
getAssetsByAuthority
Get assets by authority
getAssetsByCreator
Get assets by creator
mintCollectionNFT
Mint an NFT in a collection
searchAssets
Search for assets
Tensor
Tool Name
Description
listNFTForSale
List an NFT for sale
cancelListing
Cancel an NFT listing
3Land
Tool Name
Description
create3LandCollection
Create a collection on 3Land
create3LandSingle
Create a single NFT on 3Land
Last updated