账户地址(智能合约)
智能合约 EternalCastSubscription — 订阅计费:套餐、订阅关系与付费
地址
0x19D8454fD1806b6925046C58c32e8a5D4E57473C
余额
0 ETH(0 wei)
发起交易数(Nonce)
1
地址类型
智能合约
字节码大小
10554 字节
部署者
部署交易
部署于区块
合约方法(ABI)
| 方法 | 类型 | 参数 | 返回 | 只读查询 |
|---|---|---|---|---|
| MAX_SUBSCRIPTIONS_PER_USER | 只读 | — | uint256 | |
| cancelSubscription | 写入 | address _subscriptionAddress | — | 需参数,请用接口调用 |
| createSubscription | 写入 | address _subscriber, address _deviceAddress, uint8 _planType, uint256 _duration, bool _autoRenew | — | 需参数,请用接口调用 |
| deviceRegistryAddress | 只读 | — | address | |
| deviceToPlan | 只读 | address | uint8 | 需参数,请用接口调用 |
| getDevicePlanType | 只读 | address _deviceAddress | uint8 | 需参数,请用接口调用 |
| getPaymentCount | 只读 | address _subscriber | uint256 | 需参数,请用接口调用 |
| getPlanCount | 只读 | — | uint256 | |
| getPlanMaxDevices | 只读 | uint8 _planType | uint256 | 需参数,请用接口调用 |
| getPlanMaxSnapsPerMonth | 只读 | uint8 _planType | uint256 | 需参数,请用接口调用 |
| getPlanName | 只读 | uint8 _planType | string | 需参数,请用接口调用 |
| getPlanPrice | 只读 | uint8 _planType | uint256 | 需参数,请用接口调用 |
| getSubscription | 只读 | address _subscriptionAddress | address, address, address, uint8, uint8, uint256, uint256 | 需参数,请用接口调用 |
| getSubscriptionAutoRenew | 只读 | address _subscriptionAddress | bool | 需参数,请用接口调用 |
| getSubscriptionLastPaymentAt | 只读 | address _subscriptionAddress | uint256 | 需参数,请用接口调用 |
| getSubscriptionMetadata | 只读 | address _subscriptionAddress | string | 需参数,请用接口调用 |
| getSubscriptionNextRenewalDate | 只读 | address _subscriptionAddress | uint256 | 需参数,请用接口调用 |
| getSubscriptionPaymentCount | 只读 | address _subscriptionAddress | uint256 | 需参数,请用接口调用 |
| getSubscriptionPaymentToken | 只读 | address _subscriptionAddress | address | 需参数,请用接口调用 |
| getSubscriptionPlan | 只读 | uint8 _planType | uint8, string, string, uint256, address, uint256, uint256, bool, uint256, uint256 | 需参数,请用接口调用 |
| getSubscriptionSnapCount | 只读 | address _subscriptionAddress | uint256 | 需参数,请用接口调用 |
| getSubscriptionStartDate | 只读 | address _subscriptionAddress | uint256 | 需参数,请用接口调用 |
| getSubscriptionStatus | 只读 | address _subscriptionAddress | uint8 | 需参数,请用接口调用 |
| getSubscriptionTotalPaid | 只读 | address _subscriptionAddress | uint256 | 需参数,请用接口调用 |
| getTotalRevenue | 只读 | — | uint256 | |
| getTotalSubscriptions | 只读 | — | uint256 | |
| getUserSubscriptionCount | 只读 | address _user | uint256 | 需参数,请用接口调用 |
| getUserSubscriptions | 只读 | address _user | address[] | 需参数,请用接口调用 |
| isPlanActive | 只读 | uint8 _planType | bool | 需参数,请用接口调用 |
| isSubscription | 只读 | address | bool | 需参数,请用接口调用 |
| payee | 只读 | — | address | |
| paymentToken | 只读 | — | address | |
| planCount | 只读 | — | uint256 | |
| renewSubscription | 写入 | address _subscriptionAddress, uint256 _duration | — | 需参数,请用接口调用 |
| resumeSubscription | 写入 | address _subscriptionAddress | — | 需参数,请用接口调用 |
| subscriptionCount | 只读 | address | uint256 | 需参数,请用接口调用 |
| subscriptionExists | 只读 | address _subscriptionAddress | bool | 需参数,请用接口调用 |
| subscriptionPayments | 只读 | address , uint256 | uint256, address, uint256, bool | 需参数,请用接口调用 |
| subscriptionPlans | 只读 | uint8 | uint8, string, string, uint256, address, uint256, uint256, bool, uint256, uint256 | 需参数,请用接口调用 |
| subscriptions | 只读 | address | address, address, address, uint8, uint8, uint256, address, uint256, uint256, uint256, bool, uint256, uint256, uint256, uint256, string | 需参数,请用接口调用 |
| suspendSubscription | 写入 | address _subscriptionAddress | — | 需参数,请用接口调用 |
| totalPaymentCount | 只读 | — | uint256 | |
| totalRevenue | 只读 | — | uint256 | |
| totalSubscriptions | 只读 | — | uint256 | |
| transferSubscription | 写入 | address _subscriptionAddress, address _newSubscriber | — | 需参数,请用接口调用 |
| updateSubscriptionMetadata | 写入 | address _subscriptionAddress, string _metadata | — | 需参数,请用接口调用 |
| userSubscriptions | 只读 | address , uint256 | address | 需参数,请用接口调用 |
| withdraw | 写入 | — | — | 需参数,请用接口调用 |
交易记录(最近 1 笔)
| 交易哈希 | 区块 | 发送方 | 接收方 | 金额 | 状态 |
|---|---|---|---|---|---|
| 0xa20b20871d7f…0b483ea3 | #19 | 0xd0a16433…0c023fd6 | 合约 EternalCastSubscription | 0 ETH | 成功 |