Creates a new middleware from an API key.
Creates a new network fetching function, which combines an optional fetch-compatible library with optional middlware.
Get fetch options
Sets global fetch options for stacks.js network calls.
global fetch options after merging with previous options (or defaults)
Generated using TypeDoc
@stacks/network
Network and API library for working with Stacks blockchain nodes.
Installation
Usage
Creating a Stacks mainnet, testnet or mocknet network
Setting a custom node URL
Check if network is mainnet
Example usage in transaction builder
Get various API URLs