/transaction/prepare-announce using this api method to prepare the announce but getting error expected value for property transaction, but none was found. How can i transfer xem from one account to another?
which SDK are you using?
i ran the local node of nem, its running on my local host. i’ve resolved this issue but now when i prepare the announce a get error
var d1 = new Date ();
var timeStamp = d1.getTime();
var deadline = d1.getTime() + 1000;
RequestPrepareAnnounce: {
“transaction”:
{
"timeStamp": timeStamp/1000,
"deadline":deadline/1000,
}
i got error FAILURE_TIMESTAMP_TOO_FAR_IN_FUTURE, as i’m getting the current time.
↑
Check https://nemlibrary.com, it supports typescript and javascript.
Just use localhost
when creating the Http objects
like
const transactionHttp = new TransactionHttp([
{protocol: 'http', domain:'localhost', port: 7890}
]);
Thanks for the support, It worked.
1 Like