Yagna installation for requestors
Introduction
In this article, we'll show you how to install and configure Yagna in case you want to enable your applications to connect to the network.
Installing and running Yagna
Yagna is a service that will let you communicate with the Golem Network and perform operations on it. Let's install it.
Install Yagna
On Linux/ MacOS you can install it using our helper script like this:
curl -sSf https://join.golem.network/as-requestor | bash -
You might be asked to modify your PATH afterward.
If you have encountered problems, contact us on Discord channel.
Start the service
Open a terminal (command line window) and define the app-key that will allow our script to use the Yagna API:
export YAGNA_AUTOCONF_APPKEY=try_golem
The instructions above allow you to set a temporary app-key that will disappear after the Yagna service restart. That is good for experiments and for running examples and tutorials. For production deployment, it is recommended to use a unique app-key generated using yagna app-key create <key-name>
command. See Yagna mostly used commands for details.
Then start the service:
yagna service run
Get some funds
Requesting tasks on the Golem Network requires some funds - GLM tokens - on the network. While running on a test network, you can use freely available testnet tokens.
Open another terminal and run the following command to complete the configuration:
yagna payment fund
- You can learn more about the Golem architecture, production and test networks, and GLM tokens here: