2

How to use a wallet with metaplex-foundation/js rather than Keypair?

This will give a compilation error

const metaplex = Metaplex.make(connection).use(
    keypairIdentity(wallet)
)

1 Answer 1

2

using walletAdapterIdentity rather than keypairIdentity will solve this issue.

import { walletAdapterIdentity, Metaplex } from '@metaplex-foundation/js'

const metaplex = Metaplex.make(connection).use(
    walletAdapterIdentity(wallet)
)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.