Mirror World's Official TypeScript/JavaScript SDK
- Create a developer account at https://app.mirrorworld.fun. Create project and create an API Key.
- Install SDK in your project
yarn add @mirrorworld/web3.js
#or with npm
npm install @mirrorworld/web3.js
import { MirrorWorld, Solana } from '@mirrorworld/web3.js';
const mirrorworld = ref<MirrorWorld>(
new MirrorWorld({
apiKey: 'YOUR_SECRET_API_KEY',
chainConfig: Solana('mainnet-beta'),
})
);
// Login user with Social Authentication
async function login() {
const { refreshToken } = await mirrorworld.value.login();
}
You can view the documentation for Mirror World SDK for Mobile on our Official Documentation Site
- Authentication
- Social Authentication
- Login with Email/Password
- Asset Management
- Get current user's NFTs
- Mint NFTs
- List NFTs
- Buy NFTs
- Cancel Listing
- Update Listing
- Transfer NFT
- Query NFTs by owners
- Query NFTs by creator addresses
- Query NFTs by update authorities
- Get NFT details
- Wallet
- Get account activity
- Get account tokens
- Transfer SPL Tokens
- Transfer SOL
- Transfer MATIC
- Transfer BNB
- Go to Mirror World Developer Dashboard and create a project, create an application.
- Install Mirror World SDK Demo for Javascript using
yarn install @mirrorworld/web3.js
and start building.
- Discord: Join Discord
- Twitter: Follow us
- Telegram Group: Join
- Telegram Channel: Subscribe
Apache 2.0
Copyright (c) 2021 Mirror World Inc.