Syntax
Last updated
Last updated
All of our bots are configured using text files that have a specific key-value format. And that's what we're going to use to make the bot your way!
Let's see an example:
Note that to the left of =
, we have RPC_URL
(key), and after, https://api.devnet.solana.com
(value). We are determining that the RPC to be used by the program is https://api.devnet.solana.com
.
Note that if we change RPC_URL
to RRPC_URL
, our program will not know what it is, and will generate an error!
⚠️ Therefore, pay attention to the configuration file format and the name of the existing keys!
You can also notice that it has a #
followed by a phrase. You will see several of them in the archive. They say to the program ignore that line content. We use this to explain what a setting is for or add a note.