A StacksNetwork with default values for the Stacks mainnet. Pass a url option to override the default Hiro hosted Stacks node API. Pass a fetchFn option to customize the default networking functions.
url
fetchFn
const network = new StacksMainnet();const network = new StacksMainnet({ url: "https://stacks-node-api.mainnet.stacks.co" });const network = new StacksMainnet({ fetch: createFetchFn() });
createFetchFn, createApiKeyMiddleware
Generated using TypeDoc
A StacksNetwork with default values for the Stacks mainnet. Pass a
url
option to override the default Hiro hosted Stacks node API. Pass afetchFn
option to customize the default networking functions.createFetchFn, createApiKeyMiddleware