配额管理合约接口
配额管理
setBQL
设置区块配额上限。
Parameters
uint
- The value to be settedReturns
bool
- True, if successfully, otherwise false.Example
$ scm QuotaManager setBQL \
--quota-limit 0x0000000000000000000000000000000000000000000000000000000020000000 \
--admin-private 0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6 \
setDefaultAQL
设置默认账号配额上限
Parameters
None
Returns
uint
- The valueExample
$ scm QuotaManager setDefaultAQL \
--quota-limit 0x0000000000000000000000000000000000000000000000000000000020000000 \
--admin-private 0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6 \
setAQL
设置指定账号配额上限。
Parameters
uint
- The value to be settedReturns
bool
- True, if successfully, otherwise false.Example
$ scm QuotaManager setAQL \
--quota-limit 0x0000000000000000000000000000000000000000000000000000000020000000 \
--admin-private 0x5f0258a4778057a8a7d97809bd209055b2fbafa654ce7d31ec7191066b9225e6 \
getAccounts
查询所有指定账号。
Parameters
None
Returns
address[]
- The accounts that have AQLExample
$ scm QuotaManager getAccounts
getQuotas
查询所有指定账号的配额上限。
Parameters
None
Returns
uint[]
- The accounts' quotasExample
$ scm QuotaManager getQuotas
getBQL
查询默认块配额。
Parameters
None
Returns
uint
- The valueExample
$ scm QuotaManager getBQL
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x0000000000000000000000000000000000000000000000000000000040000000"
}
getDefaultAQL
查询默认账户配额。
Parameters
None
Returns
uint
- The valueExample
$ scm QuotaManager getDefaultAQL
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x0000000000000000000000000000000000000000000000000000000010000000"
}
getAQL
查询某一账户配额。
Parameters
address
- The account addressReturns
uint value
- The account quota valueExample
$ scm QuotaManager getAQL --address 0x4b5ae4567ad5d9fb92bc9afd6a657e6fa13a2523
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x0000000000000000000000000000000000000000000000000000000040000000"
}
getAutoExecQL
查询自动执行配额限制。
Parameters
None
Returns
uint
- The autoExec quota limit value