set_stacks_api_url
Point Stacks API requests at a custom node URL instead of the default Hiro API. Use it for self-hosted stacks-blockchain-api nodes or third-party providers.
Instructions
Point all Stacks API requests at a custom node instead of the default Hiro API. Use this if you run your own stacks-blockchain-api node (default port 3999) or use a third-party provider. The URL should serve the same /v2/ and /extended/v1/ endpoints as api.hiro.so. Example: http://localhost:3999
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Base URL of your Stacks API node (e.g. http://localhost:3999) |