I am trying to find out how parse a transaction using the RPC.
I am running both a carthage and main net node on localhost. Both are rolling nodes.
I have previously read this answer but I cannot get the parsing part to work.
Forging a tx works fine, using the exact same values as in the aforementioned post:
tezos-client -l -P 8732 rpc post chains/main/blocks/head/helpers/forge/operations with '{ "branch": "BLNbywpgiWAgniGbxjoEKhbniMbG4G6sePkXGe99eNPJmVsnskA", "contents": [ { "kind": "transaction", "source": "tz1NfEiS2uJsX43vowNjau5pdqg3Nvy8whvc", "destination": "KT1Ec3jNXyxyA54nezwcjGDRoutECJCQjpya", "fee": "1274", "counter": "86610", "gas_limit": "10100", "storage_limit": "0", "amount": "5060726" } ]}'
I obviously get the same response:
"57037ede6eb1863e65b46c54e08dac3f70be870b4a168db3615b66fb07964ff36c002122d44d997e158c36c60649d198c4175dad425efa09d2a405f44e00f6f0b40201420eaa410ac21addf427211cddd6115cba385a940000"
Now padding it the parse operation with zeroes does not work:
tezos-client -l -P 8732 rpc post chains/main/blocks/head/helpers/parse/operations with '{ "operations": [ { "data": "0800002122d44d997e158c36c60649d198c4175dad425efa09d2a405f44e00f6f0b40201420eaa410ac21addf427211cddd6115cba385a94000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "branch": "BLpcXF8ADJbGuyUKNv7TypXRd5rqnoPn3PMqJLNBeRSr4VFeUuK"} ] }'
The node replies:
Command failed : The operation cannot be parsed
I have also tried with signing transactions with my own private key, using the current branch on head, but nothing works.
What am I missing?