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
conflux
Conflux
The Conflux object
PivotDecision : Object
Object
Kind: global typedef Properties
height
number
blockHash
string
PoSStatus : Object
Object
PoS status
Kind: global typedef Properties
latestCommitted
number
epoch
number
latestVoted
number
latestTxNumber
number
pivotDecision
VotePowerState : Object
Object
Kind: global typedef Properties
endBlockNumber
number
power
number
PoSAccountStatus : Object
Object
Kind: global typedef Properties
availableVotes
number
forfeited
number
inQueue
outQueue
locked
number
unlocked
number
forceRetired
number
| null
PoSAccount : Object
Object
Kind: global typedef Properties
blockNumber
number
status
PoSTransaction : Object
Object
Kind: global typedef Properties
hash
string
blockHash
string
from
string
status
string
type
string
number
number
timestamp
number
| null
blockNumber
number
| null
payload
*
Signature : Object
Object
Kind: global typedef Properties
votes
number
account
string
PoSBlock : Object
Object
Kind: global typedef Properties
epoch
number
height
number
pivotDecision
round
number
timestamp
number
lastTxNumber
number
signatures
CommitteeNode : Object
Object
Kind: global typedef Properties
votingPower
number
address
string
Election : Object
Object
Kind: global typedef Properties
isFinalized
boolean
startBlockNumber
number
topElectingNodes
CurrentCommittee : Object
Object
Kind: global typedef Properties
epochNumber
number
quorumVotingPower
number
totalVotingPower
number
nodes
PoSCommittee : Object
Object
Kind: global typedef Properties
currentCommittee
elections
PoSReward : Object
Object
Kind: global typedef Properties
reward
number
posAddress
string
powAddress
string
PoSEpochRewards : Object
Object
Kind: global typedef Properties
powEpochHash
string
accountRewards
.getStatus ⇒ Promise.<PoSStatus>
Promise.<PoSStatus>
Kind: instance member
Returns: Promise.<PoSStatus>
- PoS status object
Example
.getAccount ⇒ Promise.<PoSAccount>
Promise.<PoSAccount>
Kind: instance member
account
Hash
Account address
[blockNumber]
number
| hex
Optional block number
Example
.getBlockByHash ⇒ Promise.<PoSBlock>
Promise.<PoSBlock>
Kind: instance member
hash
string
The hash of PoS block
Example
.getBlockByNumber ⇒ Promise.<PoSBlock>
Promise.<PoSBlock>
Kind: instance member
blockNumber
number
| hex
The number of PoS block
Example
.getCommittee ⇒ Promise.<PoSCommittee>
Promise.<PoSCommittee>
Kind: instance member
[blockNumber]
number
| hex
Optional block number
Example
.getTransactionByNumber ⇒ Promise.<PoSTransaction>
Promise.<PoSTransaction>
Kind: instance member
txNumber
number
| string
The number of transaction
Example
.getRewardsByEpoch(epoch) ⇒ Promise.<PoSEpochRewards>
Promise.<PoSEpochRewards>
Kind: instance function
epoch
number
| string
A PoS epoch number
Example
Last updated