cfx_getAdmin - Conflux

Returns the admin of the specified contract.

Parameters

  • BASE32 - Address of the contract.
  • QUANTITY|TAG - (optional, default: "latest_state") Integer epoch number, or the string "latest_state", "latest_confirmed", "latest_checkpoint" or "earliest", see the epoch number parameter

Returns

QUANTITY - Address of admin, or null if the contract does not exist.


Example

Request

curl -X POST \
--data '{"jsonrpc":"2.0","method":"cfx_getAdmin","params":["cfx:type.contract:acc7uawf5ubtnmezvhu9dhc6sghea0403y2dgpyfjp",
        "latest_state"],"id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577 


Result

{
    "jsonrpc": "2.0",
    "result": "CFX:TYPE.USER:AAT8NZGDDRS7A2XNV2ZS4EUJSR9XDG3FRJXHPB7562",
    "id": 0
}
Language
URL
Click Try It! to start a request and see the response here!