Hello, I’m trying to initiate transaction using nem-sdk. following is my code
// Using sdk data
const endpoint = nem.model.objects.create("endpoint")(nem.model.nodes.defaultTestnet, nem.model.nodes.defaultPort);
const privateKey = walletService.decryptPrivateKey(password, wallet);
logger.info(`privateKey----> ${privateKey}`);
// transaction common data initialisation
const common = nem.model.objects.get("common");
common.privateKey = privateKey;
const transferTransaction = nem.model.objects.create("transferTransaction")(recipient, 5, "test transaction");
logger.info(`Transfer Transaction----> ${JSON.stringify(transferTransaction)}`);
const transactionEntity = nem.model.transactions.prepare("transferTransaction")(common, transferTransaction, nem.model.network.data.testnet.id)
logger.info(`Transaction Entity----> ${JSON.stringify(transactionEntity)}`);
// temporary nem-sdk fix
transactionEntity.fee=6000000
// Serialize transfer transaction and announce
const transaction = await nem.model.transactions.send(common, transactionEntity, endpoint);
logger.info(`Response----> ${JSON.stringify(transaction)}`);
But all time i am getting an error of FAILURE_TIMESTAMP_TOO_FAR_IN_FUTURE
stuck with this issue. please help me to get out from here