StacksNetwork
Usage
import { StacksNetwork, STACKS_MAINNET } from '@stacks/network';
// Use a pre-configured network
const network: StacksNetwork = STACKS_MAINNET;
// Or create a custom network with a different API URL
const customNetwork: StacksNetwork = {
...STACKS_MAINNET,
client: { baseUrl: 'https://my-custom-api.example.com' },
};Notes
Definition
Properties
Property
Type
Description
Last updated
Was this helpful?