@radixdlt/babylon-core-api-sdk
Advanced tools
Comparing version 0.1.1-rcnet-1.1 to 0.1.2-rcnet-1.1
{ | ||
"name": "@radixdlt/babylon-core-api-sdk", | ||
"version": "0.1.1-rcnet-1.1", | ||
"version": "0.1.2-rcnet-1.1", | ||
"license": "Apache-2.0", | ||
@@ -17,3 +17,4 @@ "homepage": "https://github.com/radixdlt/babylon-node/tree/main/sdk/typescript/", | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"description": "A client for the RadixDLT Babylon Core API", | ||
"types": "./dist/lib/index.d.ts", | ||
"scripts": { | ||
@@ -20,0 +21,0 @@ "dev": "vite serve sandbox", |
@@ -9,2 +9,6 @@ # Core API SDK | ||
## End-to-end examples | ||
See [here for a full end-to-end example working with the TypeScript Radix Engine Toolkit](https://github.com/radixdlt/typescript-radix-engine-toolkit/tree/main/examples/core-e2e-example). | ||
## Client creation | ||
@@ -14,2 +18,5 @@ | ||
* If in an environment where `fetch` is not available, a polyfill must be used (see eg [node-fetch](https://www.npmjs.com/package/node-fetch)). | ||
If using node you will likely want to add the following dependencies: | ||
* `node-fetch` version `^2.7.3` (as `3.x` can only be imported as an ESModule). | ||
* `@types/node-fetch` version `^2.6.3` | ||
* If in a browser, pass `window.fetch` into the `fetch` parameter. | ||
@@ -20,5 +27,5 @@ | ||
```typescript | ||
import fetch from "node-fetch" // Optional polyfill for fetch required if running in nodeJS | ||
import http from 'node:http'; | ||
import https from 'node:http'; | ||
import fetch from "node-fetch" // Optional polyfill for fetch required if running in nodeJS - we recommend version 2.7.3 | ||
import http from "node:http"; | ||
import https from "node:http"; | ||
import { CoreApiClient} from "@radixdlt/babylon-core-api-sdk"; | ||
@@ -25,0 +32,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1562225
138