Closed biniama closed 6 years ago
Hi @biniama
You shouldn't need to add 1 to the sequence number returned by getAccountInfo
https://github.com/ripple/ripple-lib/blob/develop/docs/index.md#getaccountinfo
That sequence is The next (smallest unused) sequence number for this account.
Thanks, @wilsonianb. Now, I got the following reply.
{
resultCode: 'tesSUCCESS',
resultMessage: 'The transaction was applied. Only final in a validated ledger.'
}
I would like to implement a PAYMENT from one address to another using a test network and test accounts.
I am getting
terPRE_SEQ - Missing/inapplicable prior transaction
and I couldn't get the solution. Please help solve the issue and feel free to refactor the code.Here is the code and the output. NOTE: I added 4 to the ledgerVersion based on https://developers.ripple.com/reliable-transaction-submission.html#lastledgersequence and I added 1 to sequenceNumber to use the next sequence value
OUTPUT