OSDN Git Service

add access token to readme
authorYongfeng LI <wliyongfeng@gmail.com>
Mon, 21 May 2018 02:08:32 +0000 (10:08 +0800)
committerYongfeng LI <wliyongfeng@gmail.com>
Mon, 21 May 2018 02:08:37 +0000 (10:08 +0800)
README.md

index 2753124..6f31cb7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -42,7 +42,10 @@ summation of UTXOs of one account.
 const bytom = require('bytom-sdk')
 const url = 'http://localhost:9888'
 
-const client = new bytom.Client(url)
+// access token is required when client is not in same origin with the request bytom node
+const accessToken = ''
+
+const client = new bytom.Client(url, accessToken)
 ```
 
 ## Interaction with bytom