OSDN Git Service
(root)
/
bytom
/
bytom-node-sdk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add keys api doc
[bytom/bytom-node-sdk.git]
/
README.md
1
# Bytom Node.js SDK
2
3
## Usage
4
5
### In your code
6
7
```
8
const bytom = require('bytom-sdk')
9
const url = 'http://localhost:9888'
10
11
const client = new bytom.Client(url)
12
```
13
14
## Interaction with bytom
15
16
### Acount
17
18
```javascript
19
client.account.listAccounts().then(resp => {
20
console.log(resp.data)
21
})
22
```