JS API Reference - Mirror World Smart SDK
Authentication Methods | JS
Marketplace Methods | JS
createVerifiedCollection
mintNFT
updateNFT
transferNFT
createMarketplace
updateMarketplace
queryMarketplaces
listNFT
buyNFT
updateNFTListing
cancelNFTListing
getNftDetails
getNFTs
getNFTsOwnedByAddress
fetchNFTMarketplaceActivity
fetchNFTsByCreatorAddresses
fetchNFTsByMintAddresses
fetchNFTsByOwnerAddresses
fetchNFTsByUpdateAuthorities
Wallet Methods | JS
Accessors | JS
Events | JS
The SDK also emits events when specific events happen in the SDK
export type MirrorWorldEvents = { 'login:email': UserWithWallet; login: unknown; logout: unknown; ready: undefined; 'auth:refreshToken'?: string; 'update:user'?: undefined;};
You can listen to these events using the on()
method. For example, To listen to the login:email
event, we invoke the following event:
mirrorworld.on("login:email", (user) => { console.log("Logged in User", user)})
Edit this page on GitHub