|
5 | 5 | ### Example of a wallet-to-wallet transfer |
6 | 6 |
|
7 | 7 | ```js |
8 | | -const { BncClient } = require("@binance-chain/javascript-sdk") |
| 8 | +const { BncClient } = require("@bnb-chain/javascript-sdk") |
9 | 9 | const axios = require("axios") |
10 | 10 |
|
11 | 11 | const asset = "BNB" // asset string |
@@ -55,7 +55,7 @@ httpClient |
55 | 55 | ### Example of token issuance |
56 | 56 |
|
57 | 57 | ```js |
58 | | -const { BncClient, crypto, utils } = require("@binance-chain/javascript-sdk") |
| 58 | +const { BncClient, crypto, utils } = require("@bnb-chain/javascript-sdk") |
59 | 59 |
|
60 | 60 | // Token params |
61 | 61 | const tokenName = "Your Token Name" |
|
91 | 91 | ### RPC example (getAccount) |
92 | 92 |
|
93 | 93 | ```js |
94 | | -const { rpc } = require("@binance-chain/javascript-sdk") |
| 94 | +const { rpc } = require("@bnb-chain/javascript-sdk") |
95 | 95 | new rpc("https://dataseed1.binance.org:443") |
96 | 96 | .getAccount("bnb1qfmufc2q30cgw82ykjlpfeyauhcf5mad6p5y8t") |
97 | 97 | .then((x) => console.log("", JSON.stringify(x))) |
@@ -149,7 +149,7 @@ amino.marshalBinaryBare(data) |
149 | 149 | The following code is an example of what you can do with the Ledger support: |
150 | 150 |
|
151 | 151 | ```js |
152 | | -const { ledger } = require("@binance-chain/javascript-sdk") |
| 152 | +const { ledger } = require("@bnb-chain/javascript-sdk") |
153 | 153 | ledger(async () => { |
154 | 154 | // check environment (web, node) |
155 | 155 | console.log("node?", await ledger.transports.node.isSupported()) // => true if node |
|
0 commit comments