Representation of either an ethers
JSON RPC provider or the arguments
required for creating one. The window.ethereum
object injected by MetaMask
is an acceptable value for this.
Some helpful information about a newly minted NFT.
The address of the smart contract on which the NFT was minted.
Helpful links about the NFT in OpenSea. Will only be available when using a built-in chain for which we have the OpenSea parameters.
Search URL for the smart contract, which is aggregated in OpenSea as a collection. Can be sent as a best-effort if the token URL is not known.
URL directly to the token page in OpenSea. Might not be available in case the token ID is not known.
The ID of the minted NFT which can be used to fetch information about it in
the ERC-721 contract. Will only be available if the NFT contract emits a
Mint
event compatible with the videoNftAbi
Options for creating a Web3 instance.
The ID of the blockchain that is currently connected.
The blockchain-access provider, either from ethers
or the wallet.
The ABI for the required interface that the NFT smart contract should implement to be compatible with this SDK. Represented in ethers' human-readable ABI format.
Generated using TypeDoc
This module provides the highest-level abstractions of the SDK with all the utilities for minting an NFT from a video file.
On a production app, each part of the flow will likely be in a different part of your stack. In the most common case:
The FullMinter class encapsulates all of the parts above, but it serves mostly as an example of what the full minting flow would look like if performed in a single place. Check its specific documentation for more details.