Variables
Const HIRO_MAINNET_DEFAULT
HIRO_MAINNET_DEFAULT: "https://stacks-node-api.mainnet.stacks.co" = 'https://stacks-node-api.mainnet.stacks.co'
Const HIRO_MOCKNET_DEFAULT
HIRO_MOCKNET_DEFAULT: "http://localhost:3999" = 'http://localhost:3999'
Const HIRO_TESTNET_DEFAULT
HIRO_TESTNET_DEFAULT: "https://stacks-node-api.testnet.stacks.co" = 'https://stacks-node-api.testnet.stacks.co'
Const StacksNetworks
StacksNetworks: readonly ["mainnet", "testnet"] = ...
@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