PoS
Classes
Class contains pos RPC methods For the detail meaning of fields, please refer to the PoS RPC document:
Typedefs
PivotDecision : Object
PoSStatus : Object
PoS status
VotePowerState : Object
PoSAccountStatus : Object
PoSAccount : Object
PoSTransaction : Object
Signature : Object
PoSBlock : Object
CommitteeNode : Object
Election : Object
CurrentCommittee : Object
PoSCommittee : Object
PoSReward : Object
PoSEpochRewards : Object
PoS
Class contains pos RPC methods For the detail meaning of fields, please refer to the PoS RPC document:
Kind: global class
new PoS(conflux)
Create PoS instance
Returns: PoS
- The PoS instance
Param | Type | Description |
---|---|---|
conflux |
| The Conflux object |
PivotDecision : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
height |
|
blockHash |
|
PoSStatus : Object
Object
PoS status
Kind: global typedef Properties
Name | Type |
---|---|
latestCommitted |
|
epoch |
|
latestVoted |
|
latestTxNumber |
|
pivotDecision |
VotePowerState : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
endBlockNumber |
|
power |
|
PoSAccountStatus : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
availableVotes |
|
forfeited |
|
inQueue | |
outQueue | |
locked |
|
unlocked |
|
forceRetired |
|
PoSAccount : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
blockNumber |
|
status |
PoSTransaction : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
hash |
|
blockHash |
|
from |
|
status |
|
type |
|
number |
|
timestamp |
|
blockNumber |
|
payload |
|
Signature : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
votes |
|
account |
|
PoSBlock : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
epoch |
|
height |
|
pivotDecision | |
round |
|
timestamp |
|
lastTxNumber |
|
signatures |
CommitteeNode : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
votingPower |
|
address |
|
Election : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
isFinalized |
|
startBlockNumber |
|
topElectingNodes |
CurrentCommittee : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
epochNumber |
|
quorumVotingPower |
|
totalVotingPower |
|
nodes |
PoSCommittee : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
currentCommittee | |
elections |
PoSReward : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
reward |
|
posAddress |
|
powAddress |
|
PoSEpochRewards : Object
Object
Kind: global typedef Properties
Name | Type |
---|---|
powEpochHash |
|
accountRewards |
.getStatus ⇒ Promise.<PoSStatus>
Promise.<PoSStatus>
Kind: instance member
Returns: Promise.<PoSStatus>
- PoS status object
Example
.getAccount ⇒ Promise.<PoSAccount>
Promise.<PoSAccount>
Kind: instance member
Param | Type | Description |
---|---|---|
account |
| Account address |
[blockNumber] |
| Optional block number |
Example
.getBlockByHash ⇒ Promise.<PoSBlock>
Promise.<PoSBlock>
Kind: instance member
Param | Type | Description |
---|---|---|
hash |
| The hash of PoS block |
Example
.getBlockByNumber ⇒ Promise.<PoSBlock>
Promise.<PoSBlock>
Kind: instance member
Param | Type | Description |
---|---|---|
blockNumber |
| The number of PoS block |
Example
.getCommittee ⇒ Promise.<PoSCommittee>
Promise.<PoSCommittee>
Kind: instance member
Param | Type | Description |
---|---|---|
[blockNumber] |
| Optional block number |
Example
.getTransactionByNumber ⇒ Promise.<PoSTransaction>
Promise.<PoSTransaction>
Kind: instance member
Param | Type | Description |
---|---|---|
txNumber |
| The number of transaction |
Example
.getRewardsByEpoch(epoch) ⇒ Promise.<PoSEpochRewards>
Promise.<PoSEpochRewards>
Kind: instance function
Param | Type | Description |
---|---|---|
epoch |
| A PoS epoch number |
Example
Last updated