/construction/derive
POST https://rosetta.s0.b.hmny.io/construction/derive
Overview
This endpoint is offline.
This endpoint returns the AccountIdentifier associated with a public key.
Reference Rosetta Documentation
Harmony Specific Documentation
Curve Support
Harmony only supports secp256k1 curve keys. The hex_bytes
of the key is assumed to be the compressed public key.
Request Body
{"network_identifier"=>{"blockchain"=>"Harmony", "network"=>"Testnet", "sub_network_identifier"=>{"network"=>"shard 0", "metadata"=>{"is_beacon"=>true}}}, "public_key"=>{"hex_bytes"=>"03f91adb1671a2430484441b591bdad19358458e938ba291bf9e717031b6c3330d", "curve_type"=>"secp256k1"}}
RESPONSES
status: OK
{"address":"one13lx3exmpfc446vsguc5d0mtgha2ff7h5uz85pk","account_identifier":{"address":"one13lx3exmpfc446vsguc5d0mtgha2ff7h5uz85pk","metadata":{"hex_address":"0x8fCD1C9B614E2b5D3208E628d7eD68bF5494faF4"}}}