PoS
Last updated
Was this helpful?
Last updated
Was this helpful?
Class contains pos RPC methods For the detail meaning of fields, please refer to the PoS RPC document:
: Object
: Object
PoS status
: Object
: Object
: Object
: Object
: Object
: Object
: Object
: Object
: Object
: Object
: Object
: Object
Class contains pos RPC methods For the detail meaning of fields, please refer to the PoS RPC document:
Kind: global class
Create PoS instance
Returns: - The PoS instance
conflux
Conflux
The Conflux object
Object
Kind: global typedef Properties
height
number
blockHash
string
Object
PoS status
Kind: global typedef Properties
latestCommitted
number
epoch
number
latestVoted
number
latestTxNumber
number
pivotDecision
Object
Kind: global typedef Properties
endBlockNumber
number
power
number
Object
Kind: global typedef Properties
availableVotes
number
forfeited
number
inQueue
outQueue
locked
number
unlocked
number
forceRetired
number
| null
Object
Kind: global typedef Properties
blockNumber
number
status
Object
Kind: global typedef Properties
hash
string
blockHash
string
from
string
status
string
type
string
number
number
timestamp
number
| null
blockNumber
number
| null
payload
*
Object
Kind: global typedef Properties
votes
number
account
string
Object
Kind: global typedef Properties
epoch
number
height
number
pivotDecision
round
number
timestamp
number
lastTxNumber
number
signatures
Object
Kind: global typedef Properties
votingPower
number
address
string
Object
Kind: global typedef Properties
isFinalized
boolean
startBlockNumber
number
topElectingNodes
Object
Kind: global typedef Properties
epochNumber
number
quorumVotingPower
number
totalVotingPower
number
nodes
Object
Kind: global typedef Properties
currentCommittee
elections
Object
Kind: global typedef Properties
reward
number
posAddress
string
powAddress
string
Object
Kind: global typedef Properties
powEpochHash
string
accountRewards
Kind: instance member
account
Hash
Account address
[blockNumber]
number
| hex
Optional block number
Example
Kind: instance member
hash
string
The hash of PoS block
Example
Kind: instance member
blockNumber
number
| hex
The number of PoS block
Example
Kind: instance member
[blockNumber]
number
| hex
Optional block number
Example
Kind: instance member
txNumber
number
| string
The number of transaction
Example
Kind: instance function
epoch
number
| string
A PoS epoch number
Example
Kind: instance member Returns: - PoS status object Example