/construction/combine

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

Overview

This endpoint is offline.

This endpoint is called to create a transaction from an unsigned transaction and an array of provided signatures. The signed transaction returned from this method will be sent to the /construction/submit endpoint by the caller.

Reference Rosetta Documentation

Harmony Specific Documentation

Signed Transactions

Similar to unsigned_transaction from the /construction/payloads endpoint, this implementation makes no guarantee that the signed_transaction string will remain legable/formatted the way it is now. It is possible that the signed_transaction becomes a hex-encoded byte string in a future patch or minor update.

Signature Type

Harmony only supports the ecdsa_recovery signature type. This is not the same as the ecdsa signature type.

Request Body

{"network_identifier"=>{"blockchain"=>"Harmony", "network"=>"Testnet", "sub_network_identifier"=>{"network"=>"shard 0", "metadata"=>{"is_beacon"=>true}}}, "unsigned_transaction"=>"{\"rlp_bytes\":\"8ICEO5rKAIJSCIABlIkuJhaBLskNlXGi3PTIMkKKR1fwi6psz0ykyLZq/CNngICAgA==\",\"is_staking\":false,\"contract_code\":\"0x\",\"from\":{\"address\":\"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy\",\"metadata\":{\"hex_address\":\"0x34136Ab813CDC533A6399389a5BAAcc2A31bDca4\"}}}", "signatures"=>[{"hex_bytes"=>"6996e5398ab13c85716a072b1515ec53b369d177d5be9ce2f5dff39281bc835577493b36d1235a28a07ef6b93a842809d54057e44cea6182826fe880f86f0b0c01", "signing_payload"=>{"address"=>"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy", "hex_bytes"=>"9287244daf23457d8629141b2c2357faeed10b4a81769cdbcf97a39cb56c4a9d", "account_identifier"=>{"address"=>"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy", "metadata"=>{"hex_address"=>"0x34136Ab813CDC533A6399389a5BAAcc2A31bDca4"}}, "signature_type"=>"ecdsa_recovery"}, "public_key"=>{"hex_bytes"=>"0221d3f5a19460d02984d83c87fe1068bf2e013bc9a7c950a26a9e813d1eaa1509", "curve_type"=>"secp256k1"}, "signature_type"=>"ecdsa_recovery"}]}

RESPONSES

status: OK

{"signed_transaction":"{\"rlp_bytes\":\"+HCAhDuaygCCUgiAAZSJLiYWgS7JDZVxotz0yDJCikdX8IuqbM9MpMi2avwjZ4AooGmW5TmKsTyFcWoHKxUV7FOzadF31b6c4vXf85KBvINVoHdJOzbRI1oooH72uTqEKAnVQFfkTOphgoJv6ID4bwsM\",\"is_staking\":false,\"contract_code\":\"0x\",\"from\":{\"address\":\"one1xsfk4wqnehzn8f3ejwy6tw4vc233hh9ytrmxmy\",\"metadata\":{\"hex_address\":\"0x34136Ab813CDC533A6399389a5BAAcc2A31bDca4\"}}}"}