Function createApiKeyMiddleware

  • Creates a new middleware from an API key.

    Parameters

    Returns FetchMiddleware

    Example

    const apiMiddleware = createApiKeyMiddleware("example_e8e044a3_41d8b0fe_3dd3988ef302");
    const fetchFn = createFetchFn(apiMiddleware);
    const network = new StacksMainnet({ fetchFn });

    Related

    createFetchFn, StacksNetwork

Generated using TypeDoc