Moralis Provider
WARNING
You can use Moralis API for free (5 requests per second per key), and you can pay for more frequent requests. You need to register a Moralis account to use it.
Moralis provides APIs to easily access Solana NFTs.
You must initialize with moralisWeb3APIKey
, which will expose your Moralis api key on the front end. The steps to get the key after registration are as follows:
API
const assets: Assets = await unidata.assets.get(options: {
source: 'Solana NFT';
identity: string;
providers: ['Moralis'];
});
Live Demo
44 / 44
Code
const assets: Assets = await unidata.assets.get({
source: 'Solana NFT',
identity: 'EoCqmJ6xNQmZKYsic9PSgxxQzqZREjmhNFnkNqxoc8pp',
providers: ["Moralis"],
});
View
Networks:
Providers:
Data
{ "total": 0, "list": [] }