浏览器API
Scan API URL
https://mainnet-api.mapscan.io/scan/api_method
Scan API Reference
List of APIs
queryMapChainData
Uri: /scan/queryMapChainData
Request method: GET
Return map chain information, you can query the circulation, pledge amount, address number, transaction number, latest height and latest session number
Parameters
Parameter Type:
typeStr - Query type, including supply, staking, address, transfer, block, epoch.
Example:
http://host:port/scan/queryMapChainData?typeStr=supply,staking,address,transfer,block,epoch
Returns
supply - supply.
staking - staking.
address - address amount.
transfer - transfer amount.
block - Latest block height.
epoch - The latest epoch.
Example
queryCommitteeInfoByAddress
Uri: /scan/queryCommitteeInfoByAddress
Request method: GET
Get committee details by address.
Parameters
Parameter Type:
address - Validator address.
Example:
http://host:port/scan/queryCommitteeInfoByAddress?address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
voteReward - Vote reward.
signAddress - sign address.
lockedAmount - locked amount.
accountAddress - account address.
votePercent - vote percent.
version - epoch
upTime - Activity
isValidator - Is it selected
votedAmount - vote amount
name - validator name
Example
queryCommitteeList
Uri: /scan/queryCommitteeList
Request method: GET
Return a list of validators。
Parameters
Parameter Type:
pageNo - Integer of page number, default is 1.
pageSize - Integer of page size, default is 10.
name - Validator name.
address - Validator address.
Example:
http://host:port/scan/queryCommitteeList?pageNo=1&pageSize=10&name=test&address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
voteReward - Vote reward.
signAddress - sign address.
lockedAmount - locked amount.
accountAddress - account address.
votePercent - vote percent.
version - epoch
upTime - Activity
isValidator - Is it selected
votedAmount - vote amount
name - validator name
Example
queryValidatorVoteList
Uri: /scan/queryValidatorVoteList
Request method: GET
Back to voting list。
Parameters
Parameter Type:
pageNo - Integer of page number, default is 1.
pageSize - Integer of page size, default is 10.
address - Validator address.
Example:
http://host:port/scan/queryValidatorVoteList?pageNo=1&pageSize=10&address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
id - Validator address.
account - voter address.
value - vote amount.
Example
queryRewardList
Uri: /scan/queryRewardList
Request method: GET
Back to reward list。
Parameters
Parameter Type:
pageNo - Integer of page number, default is 1.
pageSize - Integer of page size, default is 10.
address - Validator address.
Example:
http://host:port/scan/queryRewardList?pageNo=1&pageSize=10&address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
epoch - epoch.
address - validator address.
reward - validator reward.
rewardStr - validator reward (wei)
voterReward - voter reward
voterRewardStr - voter reward (wei)
Example
queryVoterRewardList
Uri: /scan/queryVoterRewardList
Request method: GET
Back to voter reward list。
Parameters
Parameter Type:
pageNo - Integer of page number, default is 1.
pageSize - Integer of page size, default is 10.
address - voter address.
Example:
http://host:port/scan/queryVoterRewardList?pageNo=1&pageSize=10&address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
version - epoch.
validator - validator address.
voter - voter address.
reward - reward
Example
queryVoterList
Uri: /scan/queryVoterList
Request method: GET
Back to voter list。
Parameters
Parameter Type:
pageNo - Integer of page number, default is 1.
pageSize - Integer of page size, default is 10.
address - voter address.
Example:
http://host:port/scan/queryVoterList?pageNo=1&pageSize=10&address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
validator - validator address.
account - voter address.
value - voter amount.
version - epoch
Example
queryVoterInfo
Uri: /scan/queryVoterInfo
Request method: GET
Back to voter list。
Parameters
Parameter Type:
address - voter address.
Example:
http://host:port/scan/queryVoterInfo?address=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
voteAmount - vote amount.
voteValidatorAmount - voted validator amount.
rewardAmount - reward amount.
Example
queryPocTransactionList
Uri: /scan/queryPocTransactionList
Request method: GET
Back to validator transfer list。
Parameters
Parameter Type:
pageNo - Integer of page number, default is 1.
pageSize - Integer of page size, default is 10.
from - validator address.
Example:
http://host:port/scan/queryPocTransactionList?pageNo=1&pageSize=10&from=0xAfdE7710588ED92DE6924d5fbE3146005d9B7b1A
Returns
method - transfer method name.
eventMethod - event topic0.
txHash - transfer hash.
contract - contract address
from - from address
to - to address
value - value
input - input
status - status 0 fail 1 success
Example
queryValidatorData
Uri: /scan/queryValidatorData
Request method: GET
Back to validator data。
Parameters
Parameter Type:
none
Example:
http://host:port/scan/queryValidatorData
Returns
epoch - epoch.
count - validator count.
totalVotes - total votes (wei)
Example
Last updated