Algroand go sdk SignTransaction wrong - Algorand

Algorand go sdk SignTransaction wrong

post by tom on Jun 15, 2019

failed to send transaction: HTTP 400 Bad Request: TransactionPool.Remember: TransactionPool.test: failed to call Committed(): txTail: tried to check for dup in missing round 55276

code:

post by JasonW on Jun 15, 2019

This looks like your block range must have been off. Try using the suggested parameters for the last round and a 1000 and try again:

 tx, err := transaction.MakePaymentTxn(fromAddr, toAddr, 1000, 200000, txParams.LastRound, (txParams.LastRound + 1000), nil, "", genID, genHash)

Also your fee is going to be too low. I think the minimum is 1000 microalgos.

post by ihagopian on Jun 15, 2019

Also, it might be better to use SuggestedParams() in order to get the suggested fee dynamically (if you agree on a reasonable weighted average calculation).

post by tom on Jun 17, 2019

you’re right, thanks for your reply