Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher committed Apr 27, 2020
1 parent c200c7a commit de18d20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
target
target
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ go get install "github.com/darwinia-network/darwinia.go/dargo"

```
mkdir ~/.darwinia
echo '{"eth": { api: "infura api with your key"}}' > ~/.darwinia/config.json
echo '{"eth": { "api": "infura api with your key"}}' > ~/.darwinia/config.json
```

## Contribute and Build

```
git clone https://github.com/darwinia-network/darwinia.go.git
cd darwinia.go/dargo
make
./target/dargo version
```

## Usage
Expand Down Expand Up @@ -66,13 +75,13 @@ dargo shadow 3000
### Shadow.GetEthHeaderByNumber

```
curl -d '{"method":"Shadow.GetEthHeaderByNumber","params":[{"number": 0}], "id": 0}' http://0.0.0.0:3000
curl -d '{"method":"Shadow.GetEthHeaderByNumber","params":[{"number": 0}], "id": 0}' http://127.0.0.1:3000
```

### Shadow.GetEthHeaderWithProofByNumber

```
curl -d '{"method":"Shadow.GetEthHeaderWithProofByNumber","params":[{"number": 1, "transcation": false, "options": {"format": "json"}}], "id": 0}' http://0.0.0.0:3000
curl -d '{"method":"Shadow.GetEthHeaderWithProofByNumber","params":[{"number": 1, "transcation": false, "options": {"format": "json"}}], "id": 0}' http://127.0.0.1:3000
```

## Trouble Shooting
Expand Down

0 comments on commit de18d20

Please sign in to comment.