When running Syscoin Core (syscoind or syscoini-qt), a copy of sysgeth will first be downloaded to the Syscoin data directory and then ran as Syscoin Core starts up. Therefore, it is easy to launch a sysgeth in console mode to directly interact with NEVM. Sysgeth (github.com/syscoin/go-ethereum) is a custom version of geth (github.com/ethereum/go-ethereum) built to enable NEVM on Syscoin blockchain.
Since sysgeth is launched on startup, for all argument supported by geth, we can pass them through syscoin's argument. This can be done by appending
--gethcommandline= in the syscoind command line directly or prefix them with
gethcommandline= in syscoin.conf.
Example of command line call for syscoind
Example of a syscoin.conf is as below
If all the argument are in the
syscoin.conf file then syscoind can be ran directly without any argument, eg.
zmqpubnevm is not required as it is enabled by default If you don't want to run sysgeth nevm, you can disable it by setting zmqpubnevm to empty.
First, we need to locate the sysgeth binary, which is located in the Syscoin data directory by default.
On Linux box, that would be under
Then, we can simply run the binary and attach it to the running sysgeth using
attach on the .ipc
The location of sysgeth is by default in the base directory of the syscoin datadir, where as the geth.ipc file will be in either [syscoin datadir]/geth/geth.ipc or [syscoin datadir]/testnet3/geth/geth.ipc depending on whether you're running mainnet or testnet