Transaction hash is not showing in devent-explorer

91 Views Asked by At

I am creating a fungible ESDT token. This is my code:

// import {TokenOperationsFactory} from "@multiversx/sdk-core";
const {
  TokenOperationsFactory,
  TokenOperationsFactoryConfig
} = require('@multiversx/sdk-core');

// BROADCAST USING A NETWORK PROVIDER
const { ApiNetworkProvider } = require('@multiversx/sdk-network-providers');

// WALLET
const { UserSigner } = require('@multiversx/sdk-wallet');
const { promises } = require('fs');
require('dotenv').config();

async function MakeToken() {
  const key = await promises.readFile('./key.json', { encoding: 'utf8' });
  const walletObject = JSON.parse(key);
  let signer = await UserSigner.fromWallet(walletObject, process.env.PASSWORD);
  const provider = new ApiNetworkProvider('https://devnet-api.multiversx.com');

  const args = {
    issuer: signer.getAddress(),
    tokenName: 'ACCEL Finance',
    tokenTicker: 'ACCEL1',
    initialSupply: 1000,
    canFreeze: true,
    canWipe: true,
    canPause: true,
    canMint: true,
    canBurn: true,
    canChangeOwner: true,
    canUpgrade: true,
    canAddSpecialRoles: true,
  };

  let factory = new TokenOperationsFactory(new TokenOperationsFactoryConfig('D'));

  const Transaction = factory.issueFungible(args);
  let serializedTransaction = await transaction.serializeForSigning();
  const transactionSignature = await signer.sign(serializedTransaction);
  transaction.applySignature(transactionSignature);
 
}

MakeToken();

I got my transaction hash and signature as expected:

TX hash: c16544faa13371d114559bba7eb07372001d89c7862fc49b909a7e5445e66fe9

TX sig: f8b4d21f7242dc5d8134944bc5e24ff7987af49bd5d3ae54112f350e8359746f79a62b398caad28c5af8eab7f63a94d0d368b30d698c49409a7eff336e319b0c

But the problem is I can't find my transaction in devnet-explorer when I check with transaction hash. It is not even showing in my transaction history. Why?

0

There are 0 best solutions below