/construction/parse

POST https://rosetta.s0.b.hmny.io/construction/parse

Overview

This endpoint is offline.

This endpoint is called on both unsigned and signed transactions to understand the intent of the formulated transaction. This is run as a sanity check before signing (after /construction/payloads) and before broadcast (after /construction/combine).

Reference Rosetta Documentation

Harmony Specific Documentation

Transaction

The transaction should be either the unsigned_transaction (unchanged) from the /construction/payloads endpoint, or the signed_transaction (unchanged) from the /construction/comdbine endpoint.

Gas

The Gas operation's value in the parsed operations is only an over estimation of the incurred gas of the transaction.

Request Body

{"network_identifier"=>{"blockchain"=>"Harmony", "network"=>"Testnet", "sub_network_identifier"=>{"network"=>"shard 0", "metadata"=>{"is_beacon"=>true}}}, "transaction"=>"{\"rlp_bytes\":\"8ICEO5rKAIJSCIABlIkuJhaBLskNlXGi3PTIMkKKR1fwi6psz0ykyLZq/CNngICAgA==\",\"is_staking\":false,\"contract_code\":\"0x\",\"from\":{\"address\":\"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy\",\"metadata\":{\"hex_address\":\"0x34136Ab813CDC533A6399389a5BAAcc2A31bDca4\"}}}", "signed"=>false}

RESPONSES

status: OK

{"operations":[{"operation_identifier":{"index":0},"type":"Gas","status":"","account":{"address":"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy","metadata":{"hex_address":"0x34136Ab813CDC533A6399389a5BAAcc2A31bDca4"}},"amount":{"value":"-21000000000000","currency":{"symbol":"ONE","decimals":18}}},{"operation_identifier":{"index":1},"related_operations":[{"index":0}],"type":"NativeCrossShardTransfer","status":"","account":{"address":"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy","metadata":{"hex_address":"0x34136Ab813CDC533A6399389a5BAAcc2A31bDca4"}},"amount":{"value":"-206031228913419868127896423","currency":{"symbol":"ONE","decimals":18}},"metadata":{"from":{"address":"one1amhwamhwamhwamhwamhwamhwamhwamhwzdcv76","metadata":{"hex_address":"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"}},"to":{"address":"one13yhzv95p9mysm9t35tw0fjpjg29yw4lsfst8rc","metadata":{"hex_address":"0x892E2616812EC90D9571a2DCF4C832428A4757f0"}}}}]}