Skip to main content

Setting Up An RPC Node For web3.unity

info

This section walks through the process of setting up an RPC node to be used with the web3.unity SDK. We use Chainstack as an example, but this can also be done with other providers. Setting up an RPC node is not a requirement for the SDK but it will help in terms of congestion and stability as the public nodes can be saturated at times.

Prerequisites

  • A Chainstack account (sign up at Chainstack if you don't have one)
  • Familiarity with the web3.unity SDK

Creating a project in Chainstack

  1. Create (or log in) to your Chainstack account and navigate to the Dashboard.

  2. Click on “Projects” in the left sidebar, then click on “Create project”.

  1. Give your project a name and click create.

  1. You will appear back on the dashboard. Select your newly created project.

  1. Inside the project, click on your network of choice, or the "Explore all Node Options" button to begin deploying an RPC node.

Deploying an RPC node

  1. After clicking on the "Explore all Node Options" button, you will be presented with 3 required steps. In the first step “Network details”, you will select the EVM chain that your blockchain game will be making interactions with.

  2. Depending on which EVM chain you select, you will be prompted to select a network under a given chain. In our example, we have selected Polygon and its Mumbai testnet. Click “Next”.

  1. If you are under Chainstack’s Developer plan, you will only be able to select the default options presented in the “Node deployment” step. This means you will choose “Elastic” for node type, “Full” for full node. Finally, name your node and click “Next”.

info

Note that Chainstack’s Developer plan provides 3 million free API requests per month. This should be enough for most testing and app development purposes. If your game requires more calls per month, we would suggest upgrading your plan.

  1. Review the details under the “Summary” step and then click “Join network”. You will appear back in your project dashboard.

  1. Once deployed, the node’s status will turn green under a “Running” status. You can now expand the details of your node by clicking on its name.

Retrieving your HTTPS endpoint

  1. Within the node dashboard, you will be presented with a number of KPIs and metrics. Please scroll down to the “Access and credentials” section.

  2. From here, take note of the HTTPS endpoint, which will be the RPC URL you will use to configure web3.unity and allow your Unity game to interact with the blockchain.