Running a requestor on Mainnet
Requestor agent mainnet configuration
In order for the below commands and code to work, your
yagnadaemon must have the mainnet accounts correctly initialized using the instructions above.
After you have taken care of the above, the one last thing that you'll need to do if you want to request tasks from the providers running on the mainnet is enabling the mainnet driver in your requestor agent.
The examples we bundle with our APIs (the Blender rendering and Hashcat password recovery) expose two command-line arguments, analogous to yagna daemon itself:
While the driver is
erc20in both cases, the network does differ.
Therefore, in order to run our examples on mainnet, you'd launch them using e.g.:
python3 blender.py --payment-network=mainnet
yarn js:blender --payment-network mainnet
As for your own requestor agent code, you'll need to supply the appropriate
async with Golem(
Last modified 5mo ago