@stacks/network
Advanced tools
Comparing version 4.3.0-beta.1 to 4.3.0-beta.2
{ | ||
"name": "@stacks/network", | ||
"version": "4.3.0-beta.1", | ||
"version": "4.3.0-beta.2", | ||
"description": "Library for Stacks network operations", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@stacks/common": "^4.3.0-beta.1", | ||
"@stacks/common": "^4.2.1", | ||
"cross-fetch": "^3.1.5" | ||
@@ -66,3 +66,3 @@ }, | ||
}, | ||
"gitHead": "53cef8121496b414b5653bc9c39ef8b9aa402345" | ||
"gitHead": "5a79f794738efb2392c20891386b1dbd2cf08aa8" | ||
} |
@@ -61,3 +61,3 @@ # @stacks/network | ||
const myApiMiddleware = createApiKeyMiddleware('example_e8e044a3_41d8b0fe_3dd3988ef302'); | ||
const myFetchFn = createFetchFn(apiMiddleware); // middlewares can be used to create a new fetch function | ||
const myFetchFn = createFetchFn(myApiMiddleware); // middlewares can be used to create a new fetch function | ||
const myMainnet = new StacksMainnet({ fetchFn: myFetchFn }); // the fetchFn options can be passed to a StacksNetwork to override the default fetch function | ||
@@ -64,0 +64,0 @@ |
Sorry, the diff of this file is not supported yet
119792
Updated@stacks/common@^4.2.1