Get authorization of user's address
Peer's public key
User's address
Node's restful url
Query the governance view
Url of restful api
Query all the peer's state. The result is a map.
Url of blockchain node
Get the reward fee of address
User's address
Node's restfull url
Peer add the init pos
Peer's public key
Stake wallet address
Amount of pos to add
Payer of the transaction
Gas price
Gas limit
Creates transaction to approve candidate
Public key of user's peer
Address to pay for the gas.
Gas price
Gas limit
User authorize some peers
Peer change the status of authorization
Peer's public key
User's address
Allowed max amount of stake authorization
Payer of the transaction fee
Gas price
Gas limit
Quit node register Need two signatures if userAddr and payer are not the same
Peer reduce the init pos
Peer's public key
Stake wallet address
Amount of pos to reduce
Payer of the transaction
Gas price
Gas limit
Register to be candidate node. This tx needs signatures from userAddr and payer if these two address are not the same.
user's ONT ID, must be assigned with the role.
public key of user's peer
user's pk id
user's address to pledge ONT&ONG. This address must have enough ONT & ONG.
Initial state
Address to pay for the gas.
Gas price
Gas limit
Creates transaction to reject candidate
Public key of user's peer
Address to pay for the gas.
Gas price
Gas limit
Update allocation proportion of peer
User cancels the authorization of peer
User's address to pledge ONT&ONG.
Public key of user's peer
Address to pay for the gas.
Gas price
Gas limit
User unvotes peer nodes
user's address
peer's pks
amount of ONT to unvote
Address to pay for the gas.
Gas price
Gas limit
Creates transaction to vote for some peers. Can only vote for peers that with status 1 or 2 This tx needs signatures from userAddr and payer if these two address are not the same.
User's address
Public keys of peers that to be voted
Array of token that to vote
Address to pay for transaction's gas.
Gas price
Gas limit
Withdraw fee to user's address
Withdraw the unvote ONT Need two signatures if userAddr and payer are not the same
Generated using TypeDoc
If not set ifAuthorize or cost before, query result will be empty.