A platform for all users to view all transactions in SDChain
Modify the corresponding js file: js/constant.js
var Constant = new function() {
return {
data:{
// dataapi address of the main data source
dataApiUrl:"https://dataapi-beta.sdchain.io",
// restapi addressof some data sources
restApiUrl:"https://rest-beta.sdchain.io"
}
};
}();
This project is a pure front-end project and can be run with nginx or other static servers. For example, use nginx to modify the following configuration: Modify the file nginx.conf
http {
server {
location / {
# Actual project path
root C :/sdchain-explorer;
# Home mapping html
index index.html index.htm;
}
}
}
Access address: http://localhost:80/
The current project contains the following features:
- Show the latest transferred data.
- Get a line graph of the number of transactions in the last 7 days.
- Show the latest block height.
- Query transfer details According to hash.
- Get account balance based on account address, and recent transfer history.
- Based on html5, css3, jquery Code structure
css/ --> Style file
i18n/ --> Language Pack
images/ --> Image files
js/ --> Logical processing
index.html --> Home Page
accountSearch.html --> Page of viewing account information
txSearch.html --> Page of viewing transaction details