Skip to content

Commit

Permalink
Add explanation to cfx_getAdmin RPC when input parameter is user address
Browse files Browse the repository at this point in the history
  • Loading branch information
darwintree committed Sep 18, 2023
1 parent 781996b commit fb2fe75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/core/build/json-rpc/cfx-namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,12 @@ params: [

`BASE32` - address of admin, or `null` if the contract does not exist.

:::note

Although meaningless, it is also possible to use user address as the input parameter of `cfx_getAdmin` method. In this case, the return value will be zero address if the input user address exists in the world state, else `null` will be returned.

:::

##### Example

```json
Expand Down

0 comments on commit fb2fe75

Please sign in to comment.