Getting Started
Installation
yarn add unidata.js
npm install unidata.js --save
Initialization
import Unidata from 'unidata.js';
const unidata = new Unidata({
infuraProjectID?: string;
ipfsGateway?: string;
moralisWeb3APIKey?: string;
openseaAPIKey?: string;
alchemyEthereumAPIKey?: string;
alchemyPolygonAPIKey?: string;
alchemyFlowAPIKey?: string;
poapAPIKey?: string;
});
Parameter | Default | Description |
---|---|---|
infuraProjectID | ethers default keys | The PROJECT ID of the Infura to use. |
ipfsGateway | 'https://dweb.link/ipfs/' | The IPFS gateway to use. |
moralisWeb3APIKey | Account Web3 API Key of Moralis. | |
openseaAPIKey | API Key of OpenSea. | |
alchemyEthereumAPIKey | API Key of Alchemy Ethereum. | |
alchemyPolygonAPIKey | API Key of Alchemy Polygon. | |
alchemyFlowAPIKey | API Key of Alchemy Flow. | |
ethereumProvider | window.ethereum | Ethereum provider |
nftscanAPIKey | API Key of NFTScan. | |
poapAPIKey | API Key of POAP. |
If you don't want to expose some api keys on the front end, or if you want to cache data for faster response and higher stability, then you can use the SDK for your Node.js project.