metaplex umi – InterfaceImplementationMissingError: Tried using TransactionFactoryInterface but no implementation of that interface was found

  Kiến thức lập trình

I’m trying to use metaplex/umi but I get an error.

frontend (vue.js v3):

import { createUmi } from '@metaplex-foundation/umi';

const test = async (transaction_value) => {
    const umi = createUmi(url);
    const transaction_array = Buffer.from(transaction_value, 'base64');
    const transaction = umi.transactions.deserialize(transaction_array);
    //error//
    ...
}

Error:
InterfaceImplementationMissingError: Tried using TransactionFactoryInterface but no implementation of that interface was found. Make sure an implementation is registered, e.g. via “context.transactions = new MyTransactionFactory();”.

Why does the error occur? How to solve the problem?

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT