若已有Geth節點則可略過此步驟
請打開Terminal並輸入
git clone https://github.com/HachimanHiki/NCCU-GraduateProject-Geth.git
requires both a Go (version 1.10 or later) and a C compiler
輸入
cd NCCU-GraduateProject-Geth
make geth
或是透過此網站的教學
輸入
geth --dev --dev.period <second> --rpc --rpcapi "eth,web3,personal" --nousb --allow-insecure-unlock
其中的second代表PoA共識秒數
若已有API Server則可略過此步驟
若已安裝請跳過此步,若無安裝請參考此網站
請打開Terminal並輸入
git clone https://github.com/HachimanHiki/NCCU-GraduateProject-API.git
輸入
cd NCCU-GraduateProject-API
npm install
輸入
npm run dev
Http method:Get
Url:http://<server ip>:3000/geth
Content Type:Json
Example:
{
"transaction":[
"0xac8a5a7899d4d995ef2054220cf1980af4d2afd48c3a7cb2ee845c9a60d3a3a3",
"0xb5e2737e053512ec8c376482bd024e2c8b6860907664cc9796bf7150fdd08dc3"
]
}
Http method:Post
Url:http://<server ip>:3000/consensus
Content Type:Json
Example:
{
"blockHash": "0xac8a5a7899d4d995ef2054220cf1980af4d2afd48c3a7cb2ee845c9a60d3a3a3",
"vote":[
{
sender: "",
voteHash: "",
blockHash: "",
signature: ""
}
],
"transaction":[
"0xac8a5a7899d4d995ef2054220cf1980af4d2afd48c3a7cb2ee845c9a60d3a3a3",
"0xb5e2737e053512ec8c376482bd024e2c8b6860907664cc9796bf7150fdd08dc3"
]
}
./script/create.sh
./script/loop.sh
geth attach "ipc_url"
ex: geth attach /tmp/geth.ipc
eth.getBlock(<block number>)
ex: eth.getBlock(10)
請打開Terminal並輸入
git clone https://github.com/Alethio/ethereum-lite-explorer
在此提供簡易版本,若有問題請參照github的文檔
cp config.default.json config.dev.json
vim config.dev.json
Make necessary modifications into config.dev.json if needed. You must also remove the version query strings ?v=#.#.# from the "plugins" URIs.
vim config.dev.json
After setting up and starting Ganache(Geth), update the config.dev.json file and set the nodeUrl attribute for the eth-lite plugin to http://<serverip>:<port>
.
請注意此位置的Geth(http://<serverip>:<port>
)需要用以下指令啟動
geth --dev --dev.period <second> --rpc --rpccorsdomain "*" --rpcaddr "0.0.0.0" --rpcapi "eth,web3,personal" --nousb --allow-insecure-unlock
npm run build && npm start
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing