Run a Node with Quicknode

QuickNode is a service for rapidly getting set up with a Stacks node.

As an easy and fast alternative to running your own node, you can utilize QuickNode to serve as an API.

To get started, set up an account on QuickNode.

Once you are signed in, getting set up with your own Stacks node is a matter of a few clicks, starting with 'Create an endpoint'.

From there, you just need to select Stacks, your desired network, and your desired QuickNode plan level.

That's it.

You now have an API endpoint URL you can use to connect to Stacks.

How do you do that?

It depends on the frontend framework you are using, but let's see how to do it with Stacks.js.

First, you'll need to install the @stacks/network package.

Next we'll import it:

import { StacksTestnet } from "@stacks/network";

Then in your frontend, set up the network with the following line:

const network = new StacksTestnet({ url: "<QUICKNODE_ENDPOINT_HERE>" });

Then you can call transactions like you normally would using the @stacks/transactions library.

For an example of how to do this, please refer to the Hello Stacks tutorial.

Last updated