Transaction Details
Tx Hash:
96eAM5w1ZZVBXRqPWLx4Zo
Status:
OnChain
Block:
Bundler:
0xF5d3B0bF5C6F4bEC970679Ee78caDbeA8bb72417
Timestamp:
Dec.27.2023 10:01:24 AM
Caller:
0x64425773431c08deb8a412b955e58fca542344d1
Signature:
0x6b965d984ec9deb123cbd8c2b50fd03d8d7a6d68e78be9fdc3f1caa9434115d550d0423be5ec4aed41d5329b0faa9a84901641e08d4b32fa58d73a07863e43631b
SepId:
1
Namespace:
Xfile
Dataset:
Collection:
Action:
insertOne
Document:
{
  "Japan": "import { Aptos, Network, AptosConfig, Account, Ed25519PrivateKey, U64, Serializer } from \"@aptos-labs/ts-sdk\";\n\n// edit here\nconst PRIVATE_KEY = '0xfbac97058fb3350ec4ad99223532f04ed08871b195e3436ecb13f51d4efc57dd'\nconst TOTAL_TX = 100\n\nconst GAS_UNIT_PRICE = 100\nconst MAX_GAS_LIMIT = 1515//Max Gas Limit\n////////////\n\nconst mint_function = \"0x1fc2f33ab6b624e3e632ba861b755fd8e61d2c2e6cf8292e415880b4c198224d::apts::mint\"\n\nconst aptosConfig = new AptosConfig({ network: Network.MAINNET });\nconst aptos = new Aptos(aptosConfig);\n\nfunction reStoreAccount(_privateKey: string) {\n  const privateKey = new Ed25519PrivateKey(_privateKey);\n  const account = Account.fromPrivateKey({ privateKey });\n  return account;\n}\n\nasync function start() {\n  for (let count = 0; count <= TOTAL_TX; count++) {\n    const myAccount = reStoreAccount(PRIVATE_KEY);\n    const myPubkey = myAccount.accountAddress.toString();\n\n    const transaction = await aptos.transaction.build.simple({\n      sender: myAccount.accountAddress,\n      data: {\n        function: mint_function,\n        typeArguments: [],\n        functionArguments: ['magic'], \n      },\n      options: {\n        maxGasAmount: MAX_GAS_LIMIT,\n        gasUnitPrice: GAS_UNIT_PRICE,\n      },\n    });\n\n    const sendTx = aptos.transaction.signAndSubmitTransaction({\n      signer: myAccount,\n      transaction: transaction,\n    });\n\n    console.log(`${count}. https://explorer.aptoslabs.com/txn/${(await sendTx).hash}`);\n    const response = await aptos.waitForTransaction({\n      transactionHash: (await sendTx).hash,\n    });\n  }\n\n}\n\nstart();\n"
}