The intention of this notebook is to provide a means of testing functionality in the Langchain Document Loader for Near Blockchain.Initially this Loader supports:
Loading NFTs as Documents from NFT Smart Contracts (NEP-171 and NEP-177)
Near Mainnnet, Near Testnet (default is mainnet)
Mintbase’s Graph API
It can be extended if the community finds value in this loader. Specifically:
Additional APIs can be added (e.g. Tranction-related APIs)
from MintbaseLoader import MintbaseDocumentLoadercontractAddress = "nft.yearofchef.near" # Year of chef contract addressblockchainLoader = MintbaseDocumentLoader( contract_address=contractAddress, blockchain_type="mainnet", api_key="omni-site")nfts = blockchainLoader.load()print(nfts[:1])for doc in blockchainLoader.lazy_load(): print() print(type(doc)) print(doc)
Assistant
Responses are generated using AI and may contain mistakes.