Skip to content

Utatistics/bothnode

Repository files navigation

License

bothnode

Welcome to bothnode. (v0.5.2)

    )            )      )                  (            
 ( /(         ( /(   ( /(                  )\ )     (   
 )\())   (    )\())  )\())   (       (    (()/(    ))\  
((_)\    )\  (_))/  ((_)\    )\ )    )\    ((_))  /((_) 
| |(_)  ((_) | |_   | |(_)  _(_/(   ((_)   _| |  (_))   
| '_ \ / _ \ |  _|  | ' \  | ' \)) / _ \ / _` |  / -_)  
|_.__/ \___/  \__|  |_||_| |_||_|  \___/ \__,_|  \___|  
                                                        

Ethereum Smartcontracs (DeFi) Mitigating the Manipulation

What you can do with bothnode:

  • setup a node with the choice of your network
  • interact with a node for basic operation
  • detect the anamolies and malpractiecs using the variety of methods

Getting Started

Remote Settings

*Skip this step if not necessary.

Use bothnode-infra to automate cloud resources setup

Install bothnode

First, clone the repository.

git clone https://github.com/your-username/bothnode.git
cd bothnode

To start using CLI tool, install bothnode to your machine

pip install -e .

Set up your Node

Then, set up ethereum client by running the following command:

bothnode init <network_name>

The command launch the node of your choice:

  • ganache: local Ethereum emulator
  • sepolia: Ethereum test network
  • main: Ethereum main net

Run the usual systemctl commands to manage the underlying services (e.g., geth, lighthouse)

sudo systemctl start <service_name>.service
sudo systemctl stop <service_name>.service
sudo systemctl status <service_name>.service

sudo systemctl enable <service_name>.service
sudo journalctl -u <service_name>.service -f

After successful execution of bothnode init, your node will be running in the background while starting the syncing process at the same time.

Interact with Node

bothnode implements multiple ways of node interaction: get, tx, detect

bothnode get

bothnode get <network_name> <target> --options

bothnode tx

To send transaction to the network:

bothnode tx <network_name> --options

# regular transaction
bothnode tx ganache -f <from_address>-t <to_address> --amount 1

# transaction for smart contract calling
bothnode tx ganache -f <from_address>
--contract-address <contract_address>
--func-name transfer # e.g. 
--func-params '{"recipient": "0xFaD6bF978fC43DD8Dc6084356012f80CB3Ff1b56", "amount": 1000}' # e.g.

bothnode detect

Specify the method and apply detection algorithms to the living network!

bothnode detect --method <method_name>

see --help for the available commands and options.

Documentation

For further information on how to use bothnode, see the official documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published