@stacks/network 6.0.3-beta.0 → 6.0.3-beta.2

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -55,7 +55,7 @@ Some Stacks APIs make use API keys to provide less rate-limited plans.
55
55
 
56
56
  ```typescript
57
57
  import { createApiKeyMiddleware, createFetchFn, StacksMainnet } from '@stacks/network';
58
- import { broadcastResponse, getNonce, makeSTXTokenTransfer } from '@stacks/transactions';
58
+ import { broadcastTransaction, getNonce, makeSTXTokenTransfer } from '@stacks/transactions';
59
59
 
60
60
  const myApiMiddleware = createApiKeyMiddleware('example_e8e044a3_41d8b0fe_3dd3988ef302');
61
61
  const myFetchFn = createFetchFn(myApiMiddleware); // middlewares can be used to create a new fetch function
@@ -71,7 +71,7 @@ const txOptions = {
71
71
  };
72
72
  const transaction = await makeSTXTokenTransfer(txOptions); // fee-estimation will use the custom fetchFn
73
73
 
74
- const response = await broadcastResponse(transaction, myMainnet); // make sure to broadcast via the custom network object
74
+ const response = await broadcastTransaction(transaction, myMainnet); // make sure to broadcast via the custom network object
75
75
 
76
76
  // stacks.js functions, which take a StacksNetwork object will use the custom fetchFn
77
77
  const nonce = await getNonce('SP3FGQ8Z7JY9BWYZ5WM53E0M9NK7WHJF0691NZ159', myMainnet);
@@ -83,7 +83,7 @@ Middleware can be used to hook into network calls before sending a request or af
83
83
 
84
84
  ```typescript
85
85
  import { createFetchFn, RequestContext, ResponseContext, StacksTestnet } from '@stacks/network';
86
- import { broadcastResponse, getNonce, makeSTXTokenTransfer } from '@stacks/transactions';
86
+ import { broadcastTransaction, getNonce, makeSTXTokenTransfer } from '@stacks/transactions';
87
87
 
88
88
  const preMiddleware = (ctx: RequestContext) => {
89
89
  ctx.init.headers = new Headers();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/network",
3
- "version": "6.0.3-beta.0",
3
+ "version": "6.0.3-beta.2",
4
4
  "description": "Library for Stacks network operations",
5
5
  "license": "MIT",
6
6
  "author": "Hiro Systems PBC (https://hiro.so)",
@@ -20,7 +20,7 @@
20
20
  "typecheck:watch": "npm run typecheck -- --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@stacks/common": "^6.0.3-beta.0",
23
+ "@stacks/common": "^6.0.3-beta.2",
24
24
  "cross-fetch": "^3.1.5"
25
25
  },
26
26
  "devDependencies": {
@@ -55,5 +55,5 @@
55
55
  "typedoc": {
56
56
  "entryPoint": "./src/index.ts"
57
57
  },
58
- "gitHead": "1f0d59aace4e85e14ad35f44678ed368ede6462e"
58
+ "gitHead": "66ef4a9adae22cb5d04f3241e718fe1ef38be6b1"
59
59
  }