Creates a new Web3
instance with the provided options.
Options for the web3 provider.
Waits for a mint transaction to be confirmed and returns info about the minted NFT.
The transaction receipt as returned by mintNft.
Information about the just minted NFT.
Sends a transaction to the blockchain calling the mint
function of the
specified contract.
The URI of the NFT. This is normally the nftMetadataUrl
field returned by Api.exportToIPFS.
The address of the smart contract to use. If you're using one of the built-in chains this will default to the Livepeer-deployed smart contract so you don't need to provide one.
An optional address for the recipient of the NFT. If using the default smart contracts, this must be omited or equal to the address sending the transaction.
The receipt of the transaction. Notice that this does not mean that the transaction is confirmed. To wait for that and also get the result of the minting process, check getMintedNftInfo.
Generated using TypeDoc
Provides abstractions for interacting with an Ethereum-compatible blockchain and minting an NFT.
This currently only works with smart contracts compatible with the videoNftAbi interface. If you deploy your own contract, you can pass its address to the minting functions here but it has to implement the specified interface or not all of the functionality here will work.