@binance/wallet 1.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/dist/index.d.mts +524 -316
- package/dist/index.d.ts +524 -316
- package/dist/index.js +333 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +330 -92
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -147,21 +147,6 @@ The REST API provides detailed error types to help you handle issues effectively
|
|
|
147
147
|
|
|
148
148
|
See the [Error Handling example](./docs/rest-api/error-handling.md) for detailed usage.
|
|
149
149
|
|
|
150
|
-
#### Testnet
|
|
151
|
-
|
|
152
|
-
For testing purposes, wallet endpoints can be used in the [Testnet](https://testnet.binance.vision/). Update the `basePath` in your configuration:
|
|
153
|
-
|
|
154
|
-
```typescript
|
|
155
|
-
import { Wallet, WalletRestAPI, WALLET_REST_API_TESTNET_URL } from '@binance/wallet';
|
|
156
|
-
|
|
157
|
-
const configurationRestAPI = {
|
|
158
|
-
apiKey: 'your-api-key',
|
|
159
|
-
apiSecret: 'your-api-secret',
|
|
160
|
-
basePath: WALLET_REST_API_TESTNET_URL,
|
|
161
|
-
};
|
|
162
|
-
const client = new Wallet({ configurationRestAPI });
|
|
163
|
-
```
|
|
164
|
-
|
|
165
150
|
If `basePath` is not provided, it defaults to `https://api.binance.com`.
|
|
166
151
|
|
|
167
152
|
## Testing
|