Dear All,
I am currently utilising this code:
let toSave = {
"transactionId": transaction.id,
"timestamp": transaction.input.timestamp,
"senderWallet": transaction.input.address,
"signature": transaction.input.signature,
"recipientWallet": transaction.outputs[0].address,
"recipientReceives": transaction.outputs[0].amount
};
wixData.save("validTransactions", toSave)
So transaction is an array that can hold a number of transactions this can be one to a couple of hundred, I am wanting to save each transaction in a database and maintain them in the order that they have been validated.
Is there a need to utilise looping? I have very limited knowledge of how to do this and any help would be amazing.
I look forward to responses,
Si