Find any NFT data on the NEAR Protocol.
Craft GraphQL queries based on the Prisma schema using MintbaseSearch plugin. This plugin provides general guidelines to follow when building GraphQL queries ensuring that large responses are avoided while using Hasura's syntax. The schema is predefined and has a variety of models and views to choose from including nft_metadata, nft_tokens_with_listing, and active_listings_by_contract. With this plugin, users can easily find any NFT data on the NEAR Protocol without any authentication required. MintbaseSearch plugin is the perfect tool for developers looking to access and search NFT data on NEAR Protocol.
Learn how to use MintbaseSearch effectively! Here are a few example prompts, tips, and the documentation of available commands.
Example prompts
-
Prompt 1: "Find the minters for a specific NFT contract."
-
Prompt 2: "Get information about recent NFT activities."
-
Prompt 3: "Find NFT contracts that are owned by a specific user."
-
Prompt 4: "Retrieve the full metadata for a specific NFT token."
-
Prompt 5: "Search for active listings for a specific NFT contract."
Features and commands
Feature/Command | Description |
---|
mb_store_minters | This command retrieves a list of minters for a specific NFT contract. |
nft_activities | This command retrieves information about recent activities related to NFTs, such as purchases, sales, and transfers. |
nft_contracts | This command allows you to search for NFT contracts that are owned by a specific user. |
nft_metadata | This command retrieves the full metadata for a specific NFT token, including the title, description, and media. |
mb_views_active_listings | This command allows you to search for active listings for a specific NFT contract, including the price and currency. |
For AI
Namemintbasesearch
DescriptionCraft GraphQL queries based on the Prisma schema.
General guidelines:
- ALWAYS use `limit` to avoid large responses.
- ALWAYS use Hasura's syntax for building the queries.
- ALWAYS use either "testnet" or "mainnet" for the `network`. Accounts ending in .near are generally mainnet accounts, .testnet are testnet ones.
- ALWAYS generate GraphQL queries based on the schema defined below:
```gql
model mb_store_minters {
nft_contract_id String
minter_id String
receipt_id String?
timestamp DateTime? @db.Timestamp(6)
@@id([nft_contract_id, minter_id])
}
model nft_activities {
receipt_id String
tx_sender String
sender_pk String?
timestamp DateTime @db.Timestamp(6)
nft_contract_id String
token_id String
kind String
action_sender String?
action_receiver String?
memo String?
price Decimal? @db.Decimal
currency String?
@@id([receipt_id, nft_contract_id, token_id, kind])
}
model nft_approvals {
nft_contract_id String
token_id String
approved_account_id String
approval_id Decimal @db.Decimal
receipt_id String
timestamp DateTime @db.Timestamp(6)
@@id([nft_contract_id, token_id, approved_account_id])
}
model nft_attributes {
nft_metadata_id String
nft_contract_id String
attribute_type String
attribute_value String?
attribute_display_type String?
@@id([nft_metadata_id, nft_contract_id, attribute_type])
}
model nft_contracts {
id String @id
spec String
name String
symbol String?
icon String?
base_uri String?
reference String?
reference_hash String?
created_at DateTime? @db.Timestamp(6)
created_receipt_id String?
owner_id String?
is_mintbase Boolean
content_flag String?
category String?
}
model nft_earnings {
nft_contract_id String
token_id String
market_id String
approval_id Decimal @db.Decimal
offer_id BigInt
receipt_id String
timestamp DateTime @db.Timestamp(6)
receiver_id String
currency String
amount Decimal @db.Decimal
is_referral Boolean
is_mintbase_cut Boolean @default(false)
is_affiliate Boolean?
@@id([nft_contract_id, token_id, market_id, approval_id, receiver_id, is_referral, is_mintbase_cut])
}
model nft_metadata {
id String @id
nft_contract_id String
reference_blob Json?
title String?
description String?
media String?
media_hash String?
reference String?
reference_hash String?
extra String?
minter String?
base_uri String?
content_flag String?
}
view mb_views_nft_metadata {
id String @id
nft_contract_id String?
reference_blob Json?
title String?
description String?
media String?
media_hash String?
extra String?
metadata_content_flag String?
nft_contract_name String?
nft_contract_symbol String?
nft_contract_icon String?
nft_contract_spec String?
base_uri String?
nft_contract_reference String?
nft_contract_created_at DateTime? @db.Timestamp(6)
nft_contract_owner_id String?
nft_contract_is_mintbase Boolean?
nft_contract_content_flag String?
}
view mb_views_active_listings {
nft_contract_id String
token_id String
market_id String
approval_id Decimal @db.Decimal
created_at DateTime? @db.Timestamp(6)
receipt_id String?
kind String?
price Decimal? @db.Decimal
currency String?
listed_by String?
metadata_id String?
reference String?
minter String?
title String?
description String?
reference_blob Json?
media String?
extra String?
base_uri String?
content_flag String?
@@id([nft_contract_id, token_id, market_id, approval_id])
}
view mb_views_nft_tokens {
nft_contract_id String
token_id String
owner String?
mint_memo String?
last_transfer_timestamp DateTime? @db.Timestamp(6)
last_transfer_receipt_id String?
minted_timestamp DateTime? @db.Timestamp(6)
minted_receipt_id String?
burned_timestamp DateTime? @db.Timestamp(6)
burned_receipt_id String?
minter String?
reference String?
reference_hash String?
copies BigInt?
issued_at DateTime? @db.Timestamp(6)
expires_at DateTime? @db.Timestamp(6)
starts_at DateTime? @db.Timestamp(6)
updated_at DateTime? @db.Timestamp(6)
metadata_id String?
reference_blob Json?
title String?
description String?
media String?
media_hash String?
extra String?
metadata_content_flag String?
nft_contract_name String?
nft_contract_symbol String?
nft_contract_icon String?
nft_contract_spec String?
base_uri String?
nft_contract_reference String?
nft_contract_created_at DateTime? @db.Timestamp(6)
nft_contract_owner_id String?
nft_contract_is_mintbase Boolean?
nft_contract_content_flag String?
royalties_percent Int?
royalties Json?
splits Json?
@@id([nft_contract_id, token_id])
}
view mb_views_nft_tokens_with_listing {
nft_contract_id String
token_id String
owner String?
metadata_id String?
price Decimal? @db.Decimal
currency String?
reference_blob Json?
content_flag String?
@@id([nft_contract_id, token_id])
}
view mb_views_active_listings_by_contract {
nft_contract_id String
base_uri String?
price Decimal? @db.Decimal
currency String?
created_at DateTime? @db.Timestamp(6)
metadata_id String?
token_id String
market_id String
approval_id Decimal @db.Decimal
listed_by String?
total_listings BigInt?
title String?
media String?
@@id([nft_contract_id, token_id, market_id, approval_id])
}
```
Updates
First added20 June 2023