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
_8export type MirrorWorldEvents = {_8 'login:email': UserWithWallet;_8 login: unknown;_8 logout: unknown;_8 ready: undefined;_8 'auth:refreshToken'?: string;_8 'update:user'?: undefined;_8};
You can listen to these events using the on()
method. For example, To listen to the login:email
event, we invoke the following event:
_3mirrorworld.on("login:email", (user) => {_3 console.log("Logged in User", user)_3})
Edit this page on GitHub