4

I'm trying to broadcast this operation. The first reveal operation went fine. Now with this one:

{
  amount: "1000000"
  counter: "1179510"
  destination: "tz1......"
  fee: "1273"
  gas_limit: "10300"
  kind: "transaction"
  source: "tz1........"
  storage_limit: "300"
}

I'm having a an error <txId> rejected by the mempool pre filter. The destination address is active. The balance on my address is enough to cover the tx amount and any other fee.

Did I put wrong fee in the operation? Can you guys explain what this error is and how to avoid it?

I hardcoded gas_limit, storage_limit and fee to those values..

2

Right, your fee is not high enough.

Next time you think something like "is this the wrong fee?", let your next thought be like "I will try increasing the fee to see what happens."

Hardcoding the fee is not a great idea. At best, you will pay unnecessarily high fees, losing some mutez. At worst, this will happen.

There are docs and other questions here about how to compute the required fee, e.g. How does tezos-client compute a transaction fee? and Fees in proto 003?.

Despite the list of approximate fees given in the TezTech doc, you must do the calculation if you want the minimal fee, because it depends on the specific details of the operation.

| improve this answer | |
  • what about the burnt fee to activate an account, do that need to be summed to the operation fee? or left as balance on the account? – Rocco Musolino Apr 1 '19 at 20:12
  • I answered that when you asked it before. – Tom Apr 1 '19 at 21:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.