Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 837 Bytes

getKeysOwnership.md

File metadata and controls

25 lines (16 loc) · 837 Bytes

< EON API Documentation

transaction/getKeysOwnership

Return the list of Horizen mainchain addresses associated to a given EON sidechain addres.
This function is used for voting purposes in ZENDAO.

Parameters

Name Type Required Description
scAddressOpt String no EON address to look. If omitted, all the mainchain associations are returned

Example request

curl -sX POST 'http://127.0.0.1:9085/transaction/getKeysOwnership' -H 'Content-Type: application/json' -H 'accept: application/json' -d '{"scAddressOpt":"<sidechain_address>"}'

Example response

{
    "keysOwnership": {
        "<sidechain address>": ["<mainchain_address1>", "<mainchain_address2>", ...]
    }
}