Getting Started using MPL-Hybrid
Metaplex provides a JavaScript library that can be used to interact with the MPL-Hybrid program. Thanks to the Umi framework, it ships without many opinionated dependencies thus providing a lightweight library that can be used in any JavaScript project.
To get started, you'll need to install the Umi framework and the MPL-Hybrid JavaScript library.
npm install @metaplex-foundation/mpl-hybrid
Next, you should create your Umi
instance and install the mplHybrid
plugin like so.
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults'
import { mplHybrid } from '@metaplex-foundation/mpl-hybrid'
// Use the RPC endpoint of your choice.
const umi = createUmi('http://127.0.0.1:8899').use(mplHybrid())
From here you can decide which wallet connection method to use:
🔗 Helpful Links: