账户地址(智能合约)
智能合约 DeviceRegistry — 设备注册与所有权管理
地址
0x65B17f900eF376b350529df3bd9DFD45D032Df88
余额
0 ETH(0 wei)
发起交易数(Nonce)
1
地址类型
智能合约
字节码大小
8177 字节
部署者
部署交易
部署于区块
合约方法(ABI)
| 方法 | 类型 | 参数 | 返回 | 只读查询 |
|---|---|---|---|---|
| MAX_DEVICES_PER_USER | 只读 | — | uint256 | |
| MAX_DEVICE_ID_LENGTH | 只读 | — | uint256 | |
| MAX_DEVICE_NAME_LENGTH | 只读 | — | uint256 | |
| authorizeUser | 写入 | address _deviceAddress, address _user, bool _authorized | — | 需参数,请用接口调用 |
| contractOwner | 只读 | — | address | |
| deviceCount | 只读 | — | uint256 | |
| deviceExists | 只读 | address _deviceAddress | bool | 需参数,请用接口调用 |
| deviceIdExists | 只读 | string _deviceId | bool | 需参数,请用接口调用 |
| deviceIdToAddress | 只读 | string | address | 需参数,请用接口调用 |
| devices | 只读 | address | address, string, string, string, string, uint8, uint256, uint256, string | 需参数,请用接口调用 |
| getDevice | 只读 | address _deviceAddress | address, string, string, string, string, uint8, uint256, uint256, string | 需参数,请用接口调用 |
| getDeviceAddressById | 只读 | string _deviceId | address | 需参数,请用接口调用 |
| getDeviceCount | 只读 | — | uint256 | |
| getDeviceMetadata | 只读 | address _deviceAddress | string | 需参数,请用接口调用 |
| getDeviceStatus | 只读 | address _deviceAddress | uint8 | 需参数,请用接口调用 |
| getLastActiveTime | 只读 | address _deviceAddress | uint256 | 需参数,请用接口调用 |
| getPushToken | 只读 | address _deviceAddress | string | 需参数,请用接口调用 |
| getRegisteredTime | 只读 | address _deviceAddress | uint256 | 需参数,请用接口调用 |
| getUserDeviceCount | 只读 | address _user | uint256 | 需参数,请用接口调用 |
| getUserDevices | 只读 | address _user | address[] | 需参数,请用接口调用 |
| isDevice | 只读 | address | bool | 需参数,请用接口调用 |
| isDeviceActive | 只读 | address _deviceAddress | bool | 需参数,请用接口调用 |
| isUserAuthorized | 只读 | address _deviceAddress, address _user | bool | 需参数,请用接口调用 |
| registerDevice | 写入 | string _deviceId, string _deviceType, string _deviceName, string _pushToken, string _metadata | — | 需参数,请用接口调用 |
| transferDevice | 写入 | address _deviceAddress, address _newOwner | — | 需参数,请用接口调用 |
| updateDeviceMetadata | 写入 | address _deviceAddress, string _metadata | — | 需参数,请用接口调用 |
| updateDeviceStatus | 写入 | address _deviceAddress, uint8 _status | — | 需参数,请用接口调用 |
| updateLastActiveTime | 写入 | address _deviceAddress | — | 需参数,请用接口调用 |
| updatePushToken | 写入 | address _deviceAddress, string _newToken | — | 需参数,请用接口调用 |
| userDevices | 只读 | address , uint256 | address | 需参数,请用接口调用 |
交易记录(最近 1 笔)
| 交易哈希 | 区块 | 发送方 | 接收方 | 金额 | 状态 |
|---|---|---|---|---|---|
| 0x774dab6347e6…de6a0168 | #16 | 0xd0a16433…0c023fd6 | 合约 DeviceRegistry | 0 ETH | 成功 |