OpenSea Provider
TIP
You can use OpenSea API for free (4 requests / second), and you can request an API Key for more frequent requests.
OpenSea provides APIs to access to Ethereum NFTs, supporting Ethereum mainnet only.
You can initialize with ipfsGateway
and openseaAPIKey
to potentially get a faster response or higher stability.
It returns not only the NFTs on the chain, but also the fake NFTs stored in the Opensea centralized database that the user minted on the Opensea platform.
API
const assets: Assets = await unidata.assets.get(options: {
source: 'Ethereum NFT';
identity: string;
providers: ['OpenSea'];
limit?: number;
cursor?: string;
});
Live Demo
42 / 42
Code
const assets: Assets = await unidata.assets.get({
source: 'Ethereum NFT',
identity: '0xC8b960D09C0078c18Dcbe7eB9AB9d816BcCa8944',
providers: ["OpenSea"],
});
View
Networks:
Providers:
Data
{ "total": 0, "list": [] }