1

I tried to sign a transaction and then broadcast it, but I get the following error:

Error! Failed to broadcast transaction: ecBlockHeight 221000 does not match ecBlockId 932...., transaction was generated on a fork.

What could be the cause of this?

If i sign the transaction and broadcast it manually via the ardor desktop gui wallet via "broadcast", it works. I'm just not sure how this error is occurring or what does it mean?

enter image description here

Patoshi パトシ
  • 10,956
  • 18
  • 80
  • 151

2 Answers2

1

I got this same exact error when I tried to sign a mainnet transaction using a testnet API, so, make sure you are using the same network..

Toxnyc
  • 303
  • 1
  • 8
0

This is what we call a replay protection error, the ecBlockId and ecBlockHeight params must point to an existing block already in the blockchain. You can also omit these fields and let your node assign them.

lyaffe
  • 1,495
  • 7
  • 11