Since the launch of Kaia Blockchain this repository has been parked in favour of the new open-source projects in Kaia's Github. Contributors have now moved there continuing with massive open-source contributions to our blockchain ecosystem. A big thank you to everyone who has contributed to this repository. For more information about Klaytn's chain merge with Finschia blockchain please refer to the launching of Kaia blockchain - kaia.io.
table of contents
- Getting started
- npm package information
- Directory Structure
- Web browser support scope
- Describe how to use the front api
- Setting up the env file
- License
- Open terminal
- Clone the repo by running
git clone https://github.com/klaytn/klaytnwallet.git
- Run
npm install
to install node packages - Run
npm run start:local
- App should be running in https://localhost:15000
dependencies
The wallet project is optimized for Caver-js version "0.8.3-2".
Caver-js needs confirmation before updating.
Folder structure
pm2.config.js // npm run dev (execution server code )
webpack.config.js //webpack dev server config
webpack.prod.config.js // webpack prod config
dist // file built with 'npm run build'
static // folder with static images and font.
public // index.html, favicon, manifest.json existence in folder
1. src
src - actions // Folder where Redux action are defined
src - components // Folder where React components are defined(Save as .scss file for components)
src - constants // Define the .env file
src - enhancers // Folder where key event are defined
src - klaytn // klaytn related definition folder
src - reducers // folder where Redux reducer are defined
src - styles // stylesheet code file. _mixins.scss
src - utils // utility file. (contract.js, misc.js, transaction.js, ui.js )
src (root) // index.js, App.js, store.js(Redux store), reducer.js(Redux reducer) file existence
Supported browsers.
Chrome | Safari | Firefox | IE Edge* |
---|---|---|---|
Supported (Optimized) | Supported | Supported | Not supported |
Actual service wallet site
1. Baobab testnet
- https://baobab.wallet.klaytn.com/
- Use your wallet with a test klay. The Faucet menu is available.
2. Main Network
- https://wallet.klaytn.com
- This site uses real klay. Take care when using your wallet. The Faucet menu is not available.
* Check out the site link below
- Baobab testnet url : https://baobab.wallet.klaytn.com/
- Main Network url : https://wallet.klaytn.com
Api Type
1. api using caver ( Everything except KLAY Faucet )
- Because it uses caver, it can be used outside.
2. EN Backend api ( KLAY Faucet )
- Since it is the backend area of klaytn, it can not be used from the outside.
How to use the wallet API
The api with caver is a public API. You can also use the api from the outside.
You can use caver function by using api.
For more information on how to use caver, please visit 'https://docs.klaytn.com/'
You can see how wallet works and how to use caver in the following sites.
- klaytn docs url : https://docs.klaytn.com/
- klaytn docs wallet description url : https://docs.klaytn.com/toolkit/wallet
- klaytn docs caver-js url : https://docs.klaytn.com/sdk/caverjs
Default values to include in the env file
This is needed when starting based on the project.
add 'API_HOST','KLAYTN_HOST','CRYPO_PASSWORD' in 'config/default.env'
Explanation
'API_HOST' : KLAY Faucet backend API
'KLAYTN_HOST' : klaytn API
ex) 'https://api.baobab.klaytn.net:8651'
'CRYPO_PASSWORD' : The key used to encrypt the private key.
ex) '12345A12345B12345C12345'
Wallet service is released under the MIT license.
MIT License
Copyright (c) 2018 Klaytn wallet Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
As an open source project, Klaytnwallet is always welcoming your contribution. Please read our CONTTIBUTING.md for a walk-through of the contribution process.