Common
Introduces the query interface, registered account and locking
MAP
create an account
USAGE
$ ./marker createAccount
OPTIONS
--keystore Keystore file path
--rpcaddr HTTP-RPC server address
--name you can marker your account
like "validator" or "voter"
and so on that you want
EXAMPLES:
./marker createAccount
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--name "validator"
RESPONSE:
success
or
Failed
Locks map to be used for voting or register validator
USAGE
$ ./marker lockedMAP
OPTIONS
--keystore Keystore file path
--rpcaddr HTTP-RPC server address
--lockedNum The `MAP` you want to lock
EXAMPLES:
./marker lockedMAP
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--lockedNum 1000000
RESPONSE:
success
or
Failed
Unlocks
MAP
that becomes withdrawable after the unlocking period.USAGE
$ ./marker unlockMap
OPTIONS
--keystore Keystore file path
--rpcaddr HTTP-RPC server address
--lockedNum The `MAP` you want to unlock
EXAMPLES:
./marker unlockMap
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--lockedNum 1000000
RESPONSE:
success
or
Failed
Relocks map that has been unlocked but not withdrawn.
USAGE
$ ./marker relockMAP
OPTIONS
--keystore Keystore file path
--rpcaddr HTTP-RPC server address
--lockedNum The `MAP` you want to Relocks
--relockIndex from `getPendingWithdrawals` command
EXAMPLES:
./marker relockMAP
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--lockedNum 100000
--relockIndex 1
RESPONSE:
success
or
Failed
Withdraws
MAP
that has been unlocked after the unlocking period has passed.USAGE
$ ./marker withdrawMap
OPTIONS
--keystore Keystore file path
--rpcaddr HTTP-RPC server address
--withdrawIndex from `getPendingWithdrawals` command
EXAMPLES:
./marker withdrawMap
--rpcaddr http://127.0.0.1:7445
--keystore ./UTC--2021-09-08T08-00-15.473724074Z--1c0edab88dbb72b119039c4d14b1663525b3ac15
--withdrawIndex 1
RESPONSE:
success
or
Failed
Returns the number of registered validators
USAGE
$ ./marker getNumRegisteredValidators
OPTIONS
--rpcaddr HTTP-RPC server address
EXAMPLES:
./marker getNumRegisteredValidators --rpcaddr http://127.0.0.1:7445
RESPONSE:
100
Returns the top n validator members for a particular validator.
USAGE
$ ./marker getTopValidators
OPTIONS
--rpcaddr HTTP-RPC server address
--topNum the top number validators
you want to konw,your can
konw 'topNum' by
`getNumRegisteredValidators`
commond
EXAMPLES:
./marker GetTopValidators
--rpcaddr http://127.0.0.1:7445
--topNum 6
RESPONSE:
INFO [03-14|17:04:48.606] === getTopValidators === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:04:48.636] Validator: index=0 addr=0x1c0eDab88dbb72B119039c4d14b1663525b3aC15
INFO [03-14|17:04:48.636] Validator: index=1 addr=0x16FdBcAC4D4Cc24DCa47B9b80f58155a551ca2aF
INFO [03-14|17:04:48.636] Validator: index=2 addr=0x2dC45799000ab08E60b7441c36fCC74060Ccbe11
INFO [03-14|17:04:48.636] Validator: index=3 addr=0x6C5938B49bACDe73a8Db7C3A7DA208846898BFf5
Returns lists of all validator validators and the number of votes they've received.
USAGE
$ ./marker getTotalVotesForEligibleValidators
OPTIONS
--rpcaddr HTTP-RPC server address
EXAMPLES:
./marker getTotalVotesForEligibleValidators
--rpcaddr http://127.0.0.1:7445
RESPONSE:
INFO [03-14|17:06:13.020] === getTotalVotesForEligibleValidators === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:06:13.049] Validator: addr=0x1c0eDab88dbb72B119039c4d14b1663525b3aC15 vote amount=70,350,500,000,000,000,000,000,000
INFO [03-14|17:06:13.049] Validator: addr=0x16FdBcAC4D4Cc24DCa47B9b80f58155a551ca2aF vote amount=70,322,500,000,000,000,000,000,000
INFO [03-14|17:06:13.049] Validator: addr=0x2dC45799000ab08E60b7441c36fCC74060Ccbe11 vote amount=70,322,500,000,000,000,000,000,000
INFO [03-14|17:06:13.049] Validator: addr=0x6C5938B49bACDe73a8Db7C3A7DA208846898BFf5 vote amount=70,322,500,000,000,000,000,000,000
INFO [03-14|17:06:13.049] Validator: addr=0x81f02Fd21657DF80783755874a92c996749777Bf vote amount=32,968,000,000,000,000,000,000,000
Returns the total votes received across all validators.
USAGE
$ ./marker getTotalVotes
OPTIONS
--rpcaddr HTTP-RPC server address
EXAMPLES:
./marker getTotalVotes
--rpcaddr http://127.0.0.1:7445
RESPONSE:
INFO [03-14|17:07:24.458] === getAccountLockedGoldRequirement === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:07:24.487] result getTotalVotes=315,096,000,000,000,000,000,000,000
Returns whether or not a validator is eligible to receive votes.
USAGE
$ ./marker getValidatorEligibility
OPTIONS
--rpcaddr HTTP-RPC server address
--target Your target validator address
EXAMPLES:
./marker getValidatorEligibility
--rpcaddr http://127.0.0.1:7445
--target 0x1c0edab88dbb72b119039c4d14b1663525b3ac15
RESPONSE:
INFO [03-14|17:10:27.990] === getValidatorEligibility === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:10:28.018] === result === bool=true
Returns the validator`s information.
USAGE
$ ./marker getValidator
OPTIONS
--rpcaddr HTTP-RPC server address
--target Your target validator address
EXAMPLES:
./marker getValidator
--rpcaddr http://127.0.0.1:7445
--target 0x1c0edab88dbb72b119039c4d14b1663525b3ac15
RESPONSE:
INFO [03-14|17:12:22.303] === getValidator === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:12:22.332] ecdsaPublicKey=0x2b5e2a3beacf839d1ec74fd00f4388d4b813eac26b26ab4859003473b286650a
INFO [03-14|17:12:22.332] BlsPublicKey=0x1fd39f1fbcad8e3188442ea31dee662389599751f8e73b99215cefc2e0003f81
INFO [03-14|17:12:22.332] Score=1
INFO [03-14|17:12:22.332] Signer=0x1c0eDab88dbb72B119039c4d14b1663525b3aC15
INFO [03-14|17:12:22.332] Commission=0.1
INFO [03-14|17:12:22.333] NextCommission=0
INFO [03-14|17:12:22.333] NextCommissionBlock=0
INFO [03-14|17:12:22.333] SlashMultiplier=1
INFO [03-14|17:12:22.333] LastSlashed=0
Returns the awards of the last epoch
USAGE
$ ./marker getValidatorRewardInfo
OPTIONS
--rpcaddr HTTP-RPC server address
EXAMPLES:
./marker getValidatorRewardInfo
--rpcaddr http://127.0.0.1:7445
RESPONSE:
INFO [03-14|17:13:42.872] === getReward === cur_epoch=389 epochSize=20 queryBlockNumber=7760 validatorContractAddress=0x000000000000000000000000000000000000D012 admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:13:42.874] validator=0x1c0eDab88dbb72B119039c4d14b1663525b3aC15 reward=19,999,999,999,999,999,999,999
INFO [03-14|17:13:42.874] validator=0x16FdBcAC4D4Cc24DCa47B9b80f58155a551ca2aF reward=19,999,999,999,999,999,999,999
INFO [03-14|17:13:42.874] validator=0x2dC45799000ab08E60b7441c36fCC74060Ccbe11 reward=19,999,999,999,999,999,999,999
INFO [03-14|17:13:42.874] validator=0x6C5938B49bACDe73a8Db7C3A7DA208846898BFf5 reward=19,999,999,999,999,999,999,999
INFO [03-14|17:13:42.874] validator=0x81f02Fd21657DF80783755874a92c996749777Bf reward=9,999,999,999,999,999,999,999
INFO [03-14|17:13:42.874] === END ===
Returns the pending votes for
validator
made by account
.
USAGE
$ ./marker getPendingVotesForValidatorByAccount
OPTIONS
--rpcaddr HTTP-RPC server address
--target Your target validator address
EXAMPLES:
./marker getPendingVotesForValidatorByAccount
--rpcaddr http://127.0.0.1:7445
--target 0x1c0edab88dbb72b119039c4d14b1663525b3ac15
RESPONSE:
INFO [03-14|17:16:39.474] === getPendingVotesForValidatorByAccount === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:16:39.501] PendingVotes balance=0
Returns the pending votes for
validator
made by account
And the pending Epoch.USAGE
$ ./marker getPendingInfoForValidator
OPTIONS
--rpcaddr HTTP-RPC server address
--target Your target validator address
EXAMPLES:
./marker GetPendingInfoForValidator
--rpcaddr http://127.0.0.1:7445
--target 0x1c0edab88dbb72b119039c4d14b1663525b3ac15
RESPONSE:
INFO [03-14|17:20:49.046] === getPendingInfoForValidator === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:20:49.074] getPendingInfoForValidator Value=0 Epoch=0
Returns the active votes for
validator
made by account
.USAGE
$ ./marker getActiveVotesForValidatorByAccount
OPTIONS
--rpcaddr HTTP-RPC server address
--target Your target validator address
EXAMPLES:
./marker getActiveVotesForValidatorByAccount
--rpcaddr http://127.0.0.1:7445
--target 0x1c0edab88dbb72b119039c4d14b1663525b3ac15
RESPONSE:
INFO [03-14|17:24:41.690] === getActiveVotesForValidatorByAccount === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:24:41.717] ActiveVotes balance=71,502,344,612,553,670,006,133,714
Returns the validators that
account
has voted for.USAGE
$ ./marker getValidatorsVotedForByAccount
OPTIONS
--rpcaddr HTTP-RPC server address
--target Your target validator address
EXAMPLES:
./marker getValidatorsVotedForByAccount
--rpcaddr http://127.0.0.1:7445
--target 0x1c0edab88dbb72b119039c4d14b1663525b3ac15
RESPONSE:
INFO [03-14|17:26:57.697] === getValidatorsVotedForByAccount === admin=0x0000000000000000000000000000000000000000
INFO [03-14|17:26:57.726] validator Address=0x1c0eDab88dbb72B119039c4d14b1663525b3aC15
Returns the total amount of locked
MAP
for an account.USAGE
$ ./marker getAccountTotalLockedGold