When I want validate my offline generated transaction using RPC call /chains/main/blocks/head/helpers/scripts/run_operation.

I got error:


My generated transaction (keys and addresses are hidden):

{ branch: 'BM3ETw1z6rrrqGjfLUvk2auYodzn8P2AGSSuBaWwHttc2oi7zsV',
   [ { kind: 'transaction',
       fee: '2000',
       gas_limit: '10600',
       storage_limit: '300',
       amount: '100',
       destination: '',
       source: '',
       counter: '' } ],
  protocol: 'Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd',
   '' }

But if I broadcast this transaction to blockchain it does works

  • the error means that the json you generated does not satisfy the grammar of the rpc endpoint you are using. As you can see here it seems you need to use the field protocol_hash tezos.gitlab.io/tezos/api/… What this means is that there is probably a difference between the version of the protocol you used for generating the json and the one you use in your node currently – Ezy Oct 18 '19 at 2:43
  • I've been having a similar problem. Did you manage to get the issue resolved? I keep getting a 400 error but no idea why. I'm working on a Tezos client library for learning purposes. – Mark Robson Feb 13 at 23:22

Your Answer

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

Browse other questions tagged or ask your own question.