Node
Running the Node
Running the node with docker
The easiest way to run a node is to use the Docker image.
For example, the following command will pull the Docker image, start the syncing process in the testnet (aries
) environment, and expose the node's GraphQL API at http://0.0.0.0:4000/graphql
:
On a Windows OS, the GraphQL API may be exposed at http://127.0.0.1:4000/graphql
One of the main command line options, --network
, allows to select one of the two main pre-configured environments:
--network mainnet
: (default) the production environment, running on Polygon's mainnet.--network aries
: the testnet environment, running on Polygon's Mumbai testnet; used for developing projects before primetime.
As usual with Docker, you may find it useful to use volumes in order to have persistent data, and avoid re-syncing from scratch after the node is restarted, e.g. by prepending docker run -v your_vol_name:/.livingassets
.
Command line options
The following command line parameters may be used to override the default values:
Last updated