Package Exports
- @elizaos/plugin-stargaze
- @elizaos/plugin-stargaze/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@elizaos/plugin-stargaze) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Plugin Stargaze
A plugin for fetching NFT data from the Stargaze API.
Overview
The Plugin Stargaze provides a simple interface to get NFT data from Stargaze collections. It integrates with Stargaze's GraphQL API to fetch the latest NFTs from collections.
Installation
pnpm add @elizaos/plugin-stargazeConfiguration
Set up your environment with the required Stargaze API endpoint, currently Stargaze offers https://graphql.mainnet.stargaze-apis.com/graphql publicly.
| Variable Name | Description |
|---|---|
STARGAZE_ENDPOINT |
Stargaze GraphQL API endpoint |
Usage
import { stargazePlugin } from "@elizaos/plugin-stargaze";
// Initialize the plugin
const plugin = stargazePlugin;
// The plugin provides the GET_LATEST_NFT action which can be used to fetch NFTs
// Example: "Show me the latest NFT from ammelia collection"License
MIT