Creates a new middleware from an API key.
const apiMiddleware = createApiKeyMiddleware("example_e8e044a3_41d8b0fe_3dd3988ef302");const fetchFn = createFetchFn(apiMiddleware);const network = new StacksMainnet({ fetchFn }); Copy
const apiMiddleware = createApiKeyMiddleware("example_e8e044a3_41d8b0fe_3dd3988ef302");const fetchFn = createFetchFn(apiMiddleware);const network = new StacksMainnet({ fetchFn });
createFetchFn, StacksNetwork
Generated using TypeDoc
Creates a new middleware from an API key.